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, ;-)