Saturday, 15 September 2012

api - Dropbox Signature issues when downloading file, but account/info works fine -



api - Dropbox Signature issues when downloading file, but account/info works fine -

dropbox signature issues when downloading file, account/info works fine:

this - https://api.dropbox.com/1/account/info?oauth_consumer_key=cy6ymyqsb2yymw1&oauth_signature_method=plaintext&oauth_token=e98gtg5b2wo9o51&oauth_signature=o2jwldqtqfbmqkg%2526ller5vort89ab2r

works perfect time.

this - https://api-content.dropbox.com/1/files/dropbox/test.txt?oauth_consumer_key=cy6ymyqsb2yymw1&oauth_signature_method=plaintext&oauth_token=e98gtg5b2wo9o51&oauth_signature=o2jwldqtqfbmqkg%2526ller5vort89ab2r

produces error:

403 forbidden, {"error": "host: rpc.dropbox.com:443, fe: none, x-dropbox-requestid: none, bad oauth_signature oauth_signature_method 'plaintext'"}

what i'm missing?

i discovered issue.

in request

https://api-content.dropbox.com/1/files/dropbox/test.txt?oauth_consumer_key=cy6ymyqsb2yymw1&oauth_signature_method=plaintext&oauth_token=e98gtg5b2wo9o51&oauth_signature=o2jwldqtqfbmqkg%2526ller5vort89ab2r

%2526 double escaped &. fixing helped.

but interesting first query has same issue, drobpox doesn't complain.

api rest dropbox

No comments:

Post a Comment