c# - 无法在 Windows Phone 8.1 中集成 Dropbox

标签 c# spring windows-phone-8 windows-phone-8.1 c#-5.0

我正在尝试在我的应用程序中集成投递箱。 由于 Dropbox 没有为 Windows Phone 或 .net 提供 anhy api,我选择了 springframework第三方API。

根据那里documentation

string consumerKey = "..."; // The application's consumer key
string consumerSecret = "..."; // The application's consumer secret
string accessToken = "..."; // The access token granted after OAuth authorization
string accessTokenSecret = "..."; // The access token secret granted after OAuth authorization
IDropbox dropbox = new DropboxTemplate(consumerKey, consumerSecret, accessToken, accessTokenSecret, AccessLevel.Full);

DropBoxTemplate() =>

IDropbox dropbox = new DropboxTemplate(consumerKey, consumerSecret, accessToken, accessTokenSecret, AccessLevel.Full);

采用以下参数:

consumerKey     //i am asuming it is appKey
consumerSecret //i am asuming it is appSectret

这两个是我在 dropbox.developer 网站创建应用程序时知道的

but i dont Know the other two  ,that is  :
accessToken          //Generated on call of access_Token_Request   i guess
accessTokenSecret   //Generated on call of access_Token_Secret_Request   i guess

我的问题是如何在 Windows Phone 的 C# 中获取/分配其中两个变量(accessToken 和 accessTokenSecret)

最佳答案

accessTokenaccessTokenSecretcan take here 的应用程序范围值。 consumerKeyconsumerSecret 访问指定用户帐户的用户 key (在 DropBox 服务中授权后)。

关于c# - 无法在 Windows Phone 8.1 中集成 Dropbox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26773232/

相关文章:

java - @Autowired 与 JUnit 测试

java - 如何注册多个Spring配置文件?

c# - 根据另一个 NumericUpDown 控件更新 NumericUpDown 值

windows-phone-8 - 针对 Windows Phone ARM 目标的 Clang 交叉编译

c# - 无法向 CaSTLe Windsor 注册 MvcMailer

c# - 使用 AutoMapper 将成员映射委托(delegate)给子对象

java - 在 Spring Boot 中记录请求负载

c# - 裁剪本地存储的图像

c# - 如何在 C# 中为 Chrome for Selenium Grid 2 添加配置文件首选项?

c# - 嗨,我有 table 。表格的 col rev_levl 具有 01 int 值。我需要为当前值添加 +01