We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
JMagnat
9 years agoExplorer | Level 3
Migration V1 to V2
Hi, in V1 I simply use: Public Function write(myFile As String) As MetaData
Dim Client As DropNetClient = New DropNetClient(Konstanten.DropboxAppKey, Konstanten.DropboxApp...
Greg-DB
Dropbox Community Moderator
9 years agoFor using API v2 from .NET, we recommend using the official Dropbox .NET SDK:
https://www.dropbox.com/developers/documentation/dotnet
The examples show how to handle authorization, e.g., using DropboxOAuth2Helper in SimpleBlogDemo:
JMagnat
9 years agoExplorer | Level 3
I had a look at all docus but I cant recognize in the example how I can get an accesstoken. I can generate the uri to show the authentification to the user but I cant receive a token.
Can you gibe me a hint?
- Greg-DB9 years ago
Dropbox Community Moderator
The access token is retrieved a few lines later when the user is redirected back to the app after authorizing it here:
https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/Examples/SimpleBlogDemo/Controllers/HomeController.cs#L197- JMagnat9 years agoExplorer | Level 3I unterstand the following Workflow of this example...
I get the Uri To Show the User the authorisation Website. With the Parameter 'code' the User must Input the code manually into my app.
Is this right ?- Greg-DB9 years ago
Dropbox Community Moderator
If you use the "code" flow without a redirect URI, then yes, the user will have to manually copy and paste the authorization code into the app.
Using a redirect URI is recommended though, as shown in the example, as that will automatically pass the authorization code to your app, without the user copying/pasting it manually.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
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!