You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
amit-kumar
6 years agoExplorer | Level 4
Dropbox download api is not working
Dropbox download is not working, we are getting this error message 'service unavailable' with error code 503.. what is the alternative of this API.
Api endpoint: https://content.dropboxapi.com/2/sharing/get_shared_link_file
- Greg-DBDropbox Staff
Thanks for the report! I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the name and version of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including the relevant code snippet(s)
- the full text of the error/any output
- amit-kumarExplorer | Level 4
Thanks for reply!
1. we are using php 5.6 and using dropbox apis with guzzle (php package)
2. the steps to reproduce issues, guzzle requests are given below:(a) get file listing by using api files/list_folder get file id from response
Dropbox api url:https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder
Our Code
$response = $this->request->post('https://api.dropboxapi.com/2/files/list_folder',
['json' => [
"path" => parent_id
"limit" => limit,
]]);
(b) get preview url from this api response sharing/get_file_metadata
Dropbox api url:https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_file_metadata
Our Code
$response = $this->request->post('https://api.dropboxapi.com/2/sharing/get_file_metadata', ['json' => [
'file' => 'file_id',
]]);(c) call another api sharing/get_shared_link_file
Dropbox api url:https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_shared_link_file
Our Code
$response = $this->request->post('https://content.dropboxapi.com/2/sharing/get_shared_link_file');3. after calling above api(c) we getting the error
Error:503- Greg-DBDropbox Staff
Thanks! That's helpful. We'll look into it.
Note that if you just want to download the file though, and you are already connected to the account and have the file ID or path, you don't need to use /2/sharing/get_file_metadata and /2/sharing/get_file_metadata.
Once you know the file ID or path (from the /2/files/list_folder result), you can then call /2/files/download to download the file.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 7 hours agoIf 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 or Facebook.
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!