简体   繁体   English

使用DropNet时出错

[英]Error using DropNet

I have the following error when using DropNet library to make connection to DropBox. 使用DropNet库建立与DropBox的连接时出现以下错误。

Trying to implement it for my CMS and also for my knowledge :) 尝试为我的CMS和我的知识实施它:)

trying the current documentation of DropNet. 尝试使用DropNet的当前文档。 Source: https://github.com/DropNet/DropNet 来源: https : //github.com/DropNet/DropNet

Current code: 当前代码:

var  _client = new DropNetClient(Core.DropBoxAPI, Core.DropBoxKeySecret);
UserLogin login = _client.GetToken();
_client.UserLogin = login;
String Url = _client.BuildAuthorizeUrl();

Produces: 产生:

Received Response [Unauthorized] : Expected to see [OK]. 收到的响应[未经授权]:希望看到[确定]。 The HTTP response was [{"error": "Unauthorized"}]. HTTP响应为[{“ error”:“ Unauthorized”}]。

Exception: DropNet.Exceptions.DropboxRestException: Received Response [Unauthorized] : Expected to see [OK]. 异常:DropNet.Exceptions.DropboxRestException:收到的响应[未授权]:预期会显示[确定]。 The HTTP response was [{"error": "Unauthorized"}]. HTTP响应为[{“ error”:“ Unauthorized”}]。

I want to let the user connect to the Url returned by _client.BuildAuthorizeUrl(); 我想让用户连接到_client.BuildAuthorizeUrl();返回的网址_client.BuildAuthorizeUrl(); but it even won't let me get to url and i also have a Key and Secret generated from DropBox.com if i try to set the method _client.BuildAuthorizeUrl(); 但是它甚至不允许我进入url,如果我尝试设置方法_client.BuildAuthorizeUrl(); ,我也会从DropBox.com生成密钥和秘密_client.BuildAuthorizeUrl(); as first statement it gives also an error on the DropBox page itselfs. 作为第一个语句,它还会在DropBox页面本身上给出错误。

I tried to find an another post on Stackoverflow but i didn't find any solution so fare. 我试图在Stackoverflow上找到另一篇文章,但是到目前为止,我没有找到任何解决方案。

Its still using the basics of the documentation and it goes wrong. 它仍然使用文档的基础知识,并且出错。 If you have any ideas that would be nice. 如果您有任何好主意。

Thanks for the advices. 感谢您的建议。

我填写的秘密与APP密钥相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM