Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
w. 77
10 years agoNew member | Level 1
Please Deprecate Dropbox-Api-Arg header in V2
Content-style endpoints accept parameters in JSON format using Dropbox-Api-Arg header.
But HTTP header is not for transferring arbitrary data. Some JSON writers(serializers) produce character sequences which are not valid as HTTP Header values.
So Please stop sending JSON Text directly as HTTP Header values.
Some encodings are required before transferring like binary to hexstring,
base64 encoding. Or we need to create own custom JSON serializers just for this.
Then We need new Dropbox-Api-Arg2 header for this.
Thx.
3 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the feedback! I'll send it along to the team.
One alternative that may help is using the "arg" query parameter as mentioned in the documentation:
"Content-style endpoints
These endpoints accept or return file content, so their arguments are instead passed as JSON in the Dropbox-Api-Arg request header, and returned JSON can be found in the Dropbox-Api-Result response header. These endpoints are available on the content.dropboxapi.com domain.
For compatibility with web browsers, content-style endpoints can also be used with HTTP GET requests. In this case, arg and authorization query parameters can be used as a replacement for those headers."
- w. 7710 years agoNew member | Level 1
>>For compatibility with web browsers, content-style endpoints can also be used with HTTP GET requests. In this case, arg and authorization query parameters can be used as a replacement for those headers."
arg parameter is only available for GET??How about POST or PUT?
- Greg-DB10 years ago
Dropbox Community Moderator
It also works for POST. (And API v2 doesn't use PUT.)
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!