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
NavPanchhi
3 years agoExplorer | Level 3
Simple file name retrieving using javascript
Hello, I'm really new to working with the dropbox API and was completely lost on how to retrieve file names. My main goal is to just have a list of the files' names that are uploaded to Dropbox disp...
NavPanchhi
Explorer | Level 3
Hello,
I am currently using the ajaz call below to achieve what I need but am still facing issues.
$.ajax({
type: 'POST',
url: 'https://api.dropboxapi.com/2/files/get_metadata',
data: "{\"include_deleted\":false,\"include_has_explicit_shared_members\":false,\"include_media_info\":false,\"path\":\""}",
contentType: "application/json",
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Bearer ***")
}, success: function(data){
console.log(data);
}
})
Greg-DB
3 years agoDropbox Staff
Please clarify what you mean when you say you are "still facing issues". For example, share any unexpected error or output.
- NavPanchhi3 years agoExplorer | Level 3
Sorry about that!
The issue that is appearing now is
Failed to load resource: the server responded with a status of 400 () https://api.dropboxapi.com/2/files/get_metadata
The entire code I have is this:
<script>
$.ajax({type: 'POST',data: "{\"include_deleted\":false,\"include_has_explicit_shared_members\":false,\"include_media_info\":false,\"path\":\"}",contentType: "application/json",beforeSend: function(xhr) {xhr.setRequestHeader('Authorization', 'Bearer ***)}, success: function(data){console.log(data);//process the JSON data etc}})</script>- Greg-DB3 years agoDropbox Staff
What's in the response body for that response with the 400 status code? It should contain a more specific error message.
- NavPanchhi3 years agoExplorer | Level 3
Is this what you mean?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!