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
axew3
8 years agoCollaborator | Level 8
Retrieve with a File limit and File count
Last post i've do on answer on another topic asking about app folder or full dropbox, and how to detect, was completely not necessary, once i've see how API answer in these cases and how all work about.
Now, i've see there is around a post about files count and folder quota (if i'm not wrong on remember) but from the little on this, i can't understand, or better, i can't find out a way to achieve what i would, in full.
Even if the coded plugin provide a cache system,
i had a nice ( ?? :) ) idea, to put on the user admin interface, an option that let choose how many files retrieve. The option let choose between a minimum of 200 or multiple of 200, as this is the dbx default number for each call.
All work nice, but as a thing is never perfect, i would like to add also the last beautiful thing to the user, on his dbx page: something like, You have 274 files linked in sharing, of 600 in total allowed.
I can get the value of this, counting the cached array, and comparing with the limit.
While, i can't previously know, how many linked files the user have, if i set limit to 200 files, only one call, but the user have linked in sharing more than 200.
There is no way to know the 'count' of shared files. Isn't it?
But i know there is an has_more cursor, so at best i can inform that 200 have been retrieved, but there are more, that have not been retrieved.
... finishing to write this, is all more clear also to me maybe now.
I'm wrong in something?
It sounds like you're referring to /2/sharing/list_shared_links, is that right? The API doesn't currently offer a way to get the total count like this, but I'll be sure to pass this along as a feature request.
- axew3Collaborator | Level 8the FILES LIMIT option i've add/think to, present also the follow problem:
API answers return files, starting from latest added/uploaded files into dbx by the user.- Greg-DBDropbox Staff
It sounds like you're referring to /2/sharing/list_shared_links, is that right? The API doesn't currently offer a way to get the total count like this, but I'll be sure to pass this along as a feature request.
- axew3Collaborator | Level 8
you're right! this the result, after also your's helps, if i can:
https://plugins.w3tasks.com/wp/index.php/dropbox/?u=admin
it is possible to register and test. This linked as example is just a test account for an user named admin
now i know there are more ways to achieve a result and maybe i can now rewrite in another way, using DBX API in different way ... but it work very fast due to a little cache system added, that seem to work really nice!
The plugin is done by just 5 little files, and 1 unique class, but let for each user do anything into his DBX, within WP.
Admin can choose which groups can use the dbx feature, files limit, cache time, full dbx or app folder.
Not totally sure the way to release it .... i could ticket something about maybe for some help hint?
Thank you for all.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years 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!