Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Choyce T.
9 years agoNew member | Level 1
Generated access token
Hello, for unknown reason this chunk of code is not working for me (PHP). I used the "Generated access token" button to get me one.
$headers = array(); $headers[] = "Authorization: Bearer IFwO9iV....
Choyce T.
9 years agoNew member | Level 1
Hello Gregory, many thanks for your help, it worked seamlessly. If you could also look into this code, as I'm getting an "Internal Server Error" when trying to upload a file (png) from a url:
$headers = array();
$headers[] = 'Authorization: Bearer IFwO9iVNUF...';
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, 'https://api.dropbox.com/1/save_url/auto/downloaded.png');
curl_setopt($ch, CURLOPT_POSTFIELDS, "url=\"http://2.bp.blogspot.com/-5BRZLo7rynA/UzLTXxHNO5I/AAAAAAAAAOE/43_jWGpYcNc/s1600/bmw_logo_vector_by_celinah006-d66yn5l.png\");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$out = curl_exec($ch);
Thank you.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!