你可以用一個簡單的REST客戶端(像RestSharp)和做這樣
目前我在做這在一個電話得到這個xamarin應用程序,我使用xamarin dropbox核心api登錄,並獲取oauth_token,oauth_consumer_key和oauth_signature。如果你用c#管理oauth1流,那麼很容易獲得oauth2標記。
var rclient = new RestSharp.RestClient("https://api.dropboxapi.com/1/");
var rrequest = new RestSharp.RestRequest("oauth2/token_from_oauth1", Method.POST);
rrequest.AddHeader("Authorization", "OAuth oauth_version=\"1.0\", oauth_signature_method=\"PLAINTEXT\"");
rrequest.AddParameter("oauth_consumer_key", store.GetConsumerKey());
rrequest.AddParameter("oauth_token", store.GetAccessToken());
rrequest.AddParameter("oauth_signature", String.Concat(App.DropboxAppSecret, "&", store.GetAccessTokenSecret()));
var rresponse = rclient.Execute(rrequest);
string content = rresponse.Content;
[交聯以供參考:https://www.dropboxforum.com/hc/en-us/community/posts/204375656-Migrating-oauth1-to-oauth2-using-token-from-oauth1 - ] – Greg