简体   繁体   English

将DropNet与生成的访问令牌一起使用

[英]Use DropNet with generated access token

I'm trying to find a way to use DropNet with generated access token but can't find solution. 我正在尝试找到一种将DropNet与生成的访问令牌一起使用的方法,但是找不到解决方案。 Following code throws exception and says "Access token not found". 以下代码引发异常,并说“找不到访问令牌”。

var client = new DropNetClient("App Key", "Secret");
client.UserLogin = new UserLogin { Token = "Generated Access Token" };
client.GetFile(...);

Any thoughts ? 有什么想法吗 ?

Solved this issue. 解决了这个问题。 I'm using the old version of library which supports OAuth1 authorization only and it doesn't support authorization with generated access token. 我正在使用旧版本的库,该库仅支持OAuth1授权,并且不支持带有生成的访问令牌的授权。 Moreover old version of library has no API to switch from OAuth1 to OAuth2 此外,旧版本的库没有API可以从OAuth1切换到OAuth2

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

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