We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Dan L.10
11 years agoNew member | Level 1
API v2 feedback: files' ".tag" attribute extremely unfriendly for HTTP/JSON
I'm using v2 of the HTTP API and wanted to pass along some feedback.
When I hit a files list from an endpoint like files/list_folder, I get a JSON response like this:
{ entries: [ { '.tag': ...
Dan L.10
11 years agoNew member | Level 1
The files search API returns lists like:
```
[
{ match_type: { '.tag': 'filename'},
metadata: { '.tag': 'file', ...}
}
]
```
Both `_.pluck(results, 'match_type.tag')` and `_.pluck(results, 'match_type..tag')` fail.
Any filter is awkward: `list.filter( result => result.metadata['.tag'] === 'folder' )`
Any javascript/JSON api should not be using .'s, -'s, or spaces in attribute names. Makes developing against it very kludgy.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!