You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Lotus
7 years agoExplorer | Level 4
Empty response for /get_current_account
Hi, some years ago I used the dropbox Api v1 and now I try to switch to v2. I managed to get the authorization done but now I'm struggeling with the /get_current_account endpoint. my php loo...
- 7 years ago
That error is indicating that the request body couldn't be parsed as JSON. This endpoint doesn't have any required parameters, so you can just specify:
CURLOPT_POSTFIELDS => "null",
Lotus
Explorer | Level 4
Thanks for your response!
I thought this option would mean that I send no request body to the server and not that I don't get one...
If I disable this option I get the following error:
string(103) "Error in call to API function "users/get_current_account": request body: could not decode input as JSON"
I tried to google that problem but couldn't find any helpful information.
Could you help me again?
Greg-DB
7 years agoDropbox Staff
That error is indicating that the request body couldn't be parsed as JSON. This endpoint doesn't have any required parameters, so you can just specify:
CURLOPT_POSTFIELDS => "null",
- Lotus7 years agoExplorer | Level 4Thanks a lot! It worked.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 2 days agoIf 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 or Facebook.
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!