Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi All
Im trying to detirmin if its possible to "convert" OAuth1 token and secret with API v2 in C#
Can anyone share some code in C# How i might go about doing this for a desktop app that needs to access user dropbox accounts
many Thanks
Using the official Dropbox API 2 .NET SDK, that would look like this:
var appKey = "<APP KEY>"; var appSecret = "<APP SECRET>"; this.client = new DropboxAppClient(appKey, appSecret); var oauth1AccessTokenKey = "<OAUTH 1 ACCESS TOKEN KEY>"; var oauth1AccessTokenSecret = "<OAUTH 1 ACCESS TOKEN SECRET>"; var tokenFromOAuth1Result = await this.client.Auth.TokenFromOauth1Async(oauth1AccessTokenKey, oauth1AccessTokenSecret); Console.WriteLine(tokenFromOAuth1Result.Oauth2Token);
Many Thnaks Greg for your assistance, 😉
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!