2014-11-06 52 views
2

我想在我的應用程序中整合下拉框。 由於Dropbox沒有爲windows phone或.net提供anpi api,所以我使用了springframework Thirdparty API。無法在Windows Phone 8.1中整合Dropbox

根據那裏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 

這兩個I知道作爲我創建該應用中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中值分配給其中的兩個(的accessToken & accessTokenSecret)變量在C#

+0

可以任何人幫我在這裏 – 2014-11-06 07:41:15

+0

@ crea7or所以根據你,應用程序的關鍵是accessToken和應用程序的祕密是accessToken祕密......是你的意思告訴?? – 2014-11-06 08:58:26

回答

2

accessTokenaccessTokenSecret應用廣泛的價值觀,你can take hereconsumerKeyconsumerSecret用戶密鑰訪問指定的用戶帳戶(在DropBox服務授權後)。

+0

所以應用程序的關鍵是accessToken和應用程序的祕密是accessToken祕密......這是你的意思告訴?? – 2014-11-06 08:40:04

+0

是的,試試這個方案。 – crea7or 2014-11-08 16:26:39