We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
og19
9 months agoNew member | Level 1
Iterating through results of sharing_list_shared_links()
What is the right way to iterate through the results of calling sharing_list_shared_links()? I have this code: # Initial request response = dbx.sharing_list_shared_links() ...
og19
9 months agoNew member | Level 1
Thanks DB-Des –
What is the correct way of interating through the results when links is empty and has_more is True? Is the cursor itself a link?
I have printed out all the data that is being returned, as you can see – I'm not sure what else can be done.
I do not know the paths a priori – I need to find all the links and expire all the ones that are older than a certain amount.
DB-Des
Dropbox Community Moderator
9 months agoog19,
A cursor is encoded information associated with the API call that helps maintain the state between paginated requests. This information could include (but is not limited to), the time and date of the request, parameter values, account information, position of the last retrieved item, etc.
Could you confirm what the highest amount of requests is that you have iterated through that contain empty links and has_more=True?
Are you also able to provide 5-10 different 'X-Dropbox-Request-Id' response header values for requests that have returned empty links and has_more=True?
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!