Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Ivan_
3 years agoHelpful | Level 6
Generate Long-live access token for Oauth
Hi, I need to implement long-live token generation via c# code
I found this reference https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OAuthPKCE/Program.cs
Unfo...
Greg-DB
Dropbox Community Moderator
3 years agoThere are a number of different things that can cause that error. Did you check everything listed in my previous message?
Have you tried running the example code without modification first?
Ivan_
3 years agoHelpful | Level 6
Hi Greg-DB
I am trying to implement long-live token generation via code which was provided in first reply https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OAuthPKCE/Program.cs#L184
Unfortunately, when I am trying to receive response code the browser stops at stage when it gets approve from user in dialog window
I keep pressing "Approve" button, but nothing happens except the eternal loading
Please, check my code, maybe something must be changed
Two methods are exact as at DropBox git
Console App
- Greg-DB3 years ago
Dropbox Community Moderator
Ivan_ For reference, does that flow in the original sample app work for you though? I highly suggest trying that out to make sure that works and see the flow processed fully before trying it out in your own code.
In any case, when using a redirect URI, Dropbox will redirect the user's browser to the specified redirect URI, which the code should then handle to receive the authorization code and complete the authorization process. This basic example code doesn't actually show anything in the browser to the user when doing so, but you can update it to do so if you want. Regardless, it may be helpful to use the debugger to see where code execution is going/stopping to debug any issues in your code.
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!