cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

Re: Response headers

Response headers

neunygph
Explorer | Level 4
Go to solution

Hi,

 

With API v2, we can be able to access/retrieve response header from get_thumbnail request in order to retrieve "etag" and "dropbox-api-result". I just start using  Dropbox SDK from http://dropbox.github.io/dropbox-sdk-js/global.html#FilesThumbnailArg__anchor and I was trying to get the response header but look like there is no way for me to access response header from "DropBox.filesGetThumbnail()".

 

Just wonder if there is a way to do it with the SDK

 

Thanks,

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
Yes, if there have been any changes to the file, the rev will be different.

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution

The JavaScript SDK doesn't expose these directly. Instead, the information from the filesGetThumbnail response is translated into a JavaScript object for you. Likewise, the etag value is available as the "rev" metadata.

neunygph
Explorer | Level 4
Go to solution
Hello Greg,

So that mean we can use the rev value as an etag to check if the file has been modified since the last request, is that correct ?
Thanks,

Greg-DB
Dropbox Staff
Go to solution
Yes, if there have been any changes to the file, the rev will be different.

neunygph
Explorer | Level 4
Go to solution

Oh I see, thank you.

Need more support?