cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

list_shared_links and list_folder_members pagination

list_shared_links and list_folder_members pagination

rk90
Explorer | Level 4

As per the API doc,  /2/sharing/list_shared_links does not return has_more attribute but cursor. What's the purpose of returning cursor? Is there a possibility that the result may span across several pages? Do I have to call /2/sharing/list_shared_links again with cursor inside the request body to ensure I have gotten all shared links created by a user?

/2/sharing/list_folder_members also returns cursor, but the document says that cursor will be returned if there are additional shared folder members that have not been returned. In such case I should call /2/sharing/list_folder_members/continue. Why not return the has_more attribute here?

 

1 Reply 1

Re: list_shared_links and list_folder_members pagination

DBX_Robert
Dropboxer

In "/2/sharing/list_shared_links", your assumption is correct.  If a cursor is returned, then addtional API calls to `/2/sharing/list_shared_links` are required to load all of the shared links for the user.  Be sure to include the cursor from the previous response in the subsequent request to load the additional link information.

As for why `/2/sharing/list_folder_members` has a separate `/continue` API endpoint and includes a "has_more" field, while `/2/sharing/list_shared_links`.  This is simply an inconsistency in our API design.

 

Who's talking

Top contributors to this post

  • User avatar
    DBX_Robert Dropboxer
What do Dropbox user levels mean?
Need more support?