Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
maxdiable
7 years agoExplorer | Level 3
405 Method Not Allowed
hi, this is may code: var code = 'xxxxxxx'; var client = new HttpClient(); var url = string.Format("https://api.dropboxapi.com/oauth2/token?code={0}&grant_type={1}", code, "authorization_code"); ...
Greg-DB
Dropbox Community Moderator
7 years agoThe /oauth2/token endpoint requires a POST, not a GET, so you're accordingly receiving a 405 error. Switch to using POST instead.
You can find more information in the documentation:
https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token
It looks like you're also missing the app key and secret, and redirect URI, if used. Make sure you format the request as documented and include all of the necessary parameters.
You can find more information in the documentation:
https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token
It looks like you're also missing the app key and secret, and redirect URI, if used. Make sure you format the request as documented and include all of the necessary parameters.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!