We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pakk4
2 years agoNew member | Level 2
Error 404 when trying to get refresh token using CURL C++
Hello, I am currently trying to get the refresh token for my scoped app using CURL C++ but I am just getting error 404 from the buffer. Here is my code: void get_refresh_token()
{
CURL* cur...
Greg-DB
Dropbox Community Moderator
2 years agoBased on this code, it looks like you're not formatting this HTTP request correctly:
- Make sure you're using the POST method (i.e., not GET)
- Send the parameters as application/x-www-form-urlencoded data in the request body, not as JSON in a Dropbox-API-Arg header
- When sending the app key/secret in the Authorization header, be sure to encode them with base64 encoding
Please refer to the /oauth2/token documentation here for information on how to configure this request.
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!