Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Győző C.
9 years agoExplorer | Level 3
APIv2 call needs X-Dropbox-Uid header?
Hi! I am migrating to APIv2, and stuck with this:
Error in call to API function "files/save_url": Must provide HTTP header "X-Dropbox-Uid"
In the documentation I only find that the Authorization token is needed, so there should be no changes from v1 here.
This is the request:
Method: POST Content-Type=application/x-www-form-urlencoded Authorization=Bearer <the_token_that works_fine_ with_v1> url=https%3A%2F%2Fgycsoka-dot-dev-easyling.appspot.com%2F_el%2Ffiles%2Fexports%2FuxoOpbRPopLhxHWTlbbVotXg46zQKQX1%2Fdictionary.xliff.zip&path=%2Ftranslationproxy%2F%2F40f3cy3f%2Fexport%2Fskawa.hu_et-EE_40f3cy3f_1474016958473.xlf.zip
And the response:
Server=nginx Date=Fri, 16 Sep 2016 09:09:26 GMT Content-Type=text/plain; charset=utf-8 Content-Length=88 Connection=keep-alive Content-Disposition=attachment; filename=unspecified Content-Security-Policy=sandbox X-Content-Security-Policy=sandbox X-Dropbox-Request-Id=95b0ab8083ce94994c12356d12da9ccc X-Webkit-Csp=sandbox Strict-Transport-Security=max-age=15552000; includeSubDomains Error in call to API function "files/save_url": Must provide HTTP header "X-Dropbox-Uid"
Please help me clear up this!
Thanks,
Győző
2 Replies
- Greg-DB9 years ago
Dropbox Community Moderator
Hi Győző, are you making the request to www.dropbox.com by any chance? RPC API calls like /2/files/save_url should be made to api.dropbox.com or api.dropboxapi.com.
Also, you should be using application/json not application/x-www-form-urlencoded. There's a curl example in the documentation. The API Explorer may also be helpful.
- Győző C.9 years agoExplorer | Level 3
You're absolutely right. Thanks for helping!
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!