Dropbox and PHP APIs

I am trying to reproduce the following error while trying to read the contents of a file which is in a subfolder, not in the parent folder.

Fatal error: throw an exception exception with the message "Invalid signature. Expected signature database string: GET & HTTPS% 3A% 2F% 2Fapi-content.dropbox.com% 2F1% 2Ffiles% 2Fdropbox% 2FProjects% 2FMAC% 2520Error.rtf & oautkey_cons % 3Dbdagb07uu6zq827% 26oauth_nonce% 3D46d063d5815a0972d63cf72359c0349f% 26oauth_signature_method% 3DHMAC-SHA1% 26oauth_timestamp% 3D1324449973% 26oauth_token% 3D7f2cr9kppqo2hxz% 26oauth_version% 3D1.0 (status code 403) 'in / Applications / MAMP / htdocs / dbcatalog / BenTheDesigner -Dropbox-88e3876 / Dropbox /OAuth/Consumer/Curl.php:133 Stack Trace: # 0 / Applications / MAMP / htdocs / dbcatalog / BenTheDesigner -Dropbox-88e3876 / Dropbox / API.php (109): Dropbox \ OAuth \ Consumer \ Curl-> fetch ( 'GET', 'https: // api-con ...', 'files / dropbox / P ...', Array) # 1 / Applications / MAMP / htdocs / dbcatalog / BenTheDesigner -Dropbox-88e3876 / ch eck.php (21): Dropbox \ API-> getFile ("Projects / MAC Er ...") # 2 {main} is thrown in / Applications / MAMP / htdocs / dbcatalog / BenTheDesigner -Dropbox-88e3876 / Dropbox / OAuth / Consumer / Curl.php on line 133

I am using Ben Dropbox library for php

https://github.com/BenTheDesigner/Dropbox

thanks

+1
source share
2 answers

If you are looking for a simple PHP API, you can find it here:

https://github.com/hawaiianchimp/Dropbox-PHP-API/

+2
source

This is a message that is returned when an OAuth request is signed incorrectly. This is probably the fault of the library you are using. At first glance, it looks like it might be the wrong encoding of your "MAC Error.rtf" file name. Booklet SDK SDK is mentioned on its website as an alternative and cause this problem to the library owner.

The code that generates this will also help.

0
source

All Articles