cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Please Deprecate Dropbox-Api-Arg header in V2

New member | Level 1
New member | Level 1

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 3
Highlighted

Re: Please Deprecate Dropbox-Api-Arg header in V2

Dropboxer
Dropboxer

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."

Highlighted

Re: Please Deprecate Dropbox-Api-Arg header in V2

New member | Level 1
New 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?

 

 

Highlighted

Re: Please Deprecate Dropbox-Api-Arg header in V2

Dropboxer
Dropboxer

It also works for POST. (And API v2 doesn't use PUT.)

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Polls
Have you been keeping up good habits while working from home?
We've created a working from home cheat sheet to help keep up on those habits, check it out here.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?