cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

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: 

Please Deprecate Dropbox-Api-Arg header in V2

Please Deprecate Dropbox-Api-Arg header in V2

w. 77
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

Greg-DB
Dropbox Staff

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. 77
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?

 

 

Greg-DB
Dropbox Staff

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    w. 77 New member | Level 1
What do Dropbox user levels mean?