Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
raysharp
8 years agoExplorer | Level 3
https://api.dropboxapi.com/2/users/get_space_usage no response
Hello. we use Dropbox HTTP V2 API to upload files . all it's ok. but. there is no response when send https://api.dropboxapi.com/2/users/get_space_usage post . we don't know why.
Greg-DB
Dropbox Community Moderator
8 years agoThanks! That's helpful. It looks like curl is waiting for the request body. Since this API call doesn't require one, you need to tell curl that, like this:
curl_easy_setopt(curl, CURLOPT_POST, 1L);
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
Or, you can send the JSON "null" in the body instead:
headers = curl_slist_append(headers, "Content-Type: application/json"); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "null");
blink
8 years agoExplorer | Level 3
Many Thanks!
It's all ok now!
we add two lines code
headers = curl_slist_append(headers, "Content-Type: ");
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
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!