3

When I call

sharing_list_shared_links(path=None, cursor=None, direct_only=None)

using the official Python SDK v2 the resulting ListSharedLinksResult contains the same cursor, which leads to an endless loop in the worst case (see code snippet). The has_more flag is true in every iteration.

cursor = None
while True:
    result = api.sharing_list_shared_links(cursor=cursor)

    for link in result.links:
        store_link(link)

     if not result.has_more:
        break
     cursor = result.cursor

We are using the account for continuous integration tests, which means that the account may somehow be broken.

Did anyone else experience the same behaviour?

Greets, Hannes

3
  • What should the official Python SDK v2 be? and please share some more, runnable code with us.
    – linusg
    Commented Jun 21, 2016 at 16:08
  • [Cross-linking for reference: dropboxforum.com/hc/en-us/community/posts/… ]
    – Greg
    Commented Jun 21, 2016 at 17:27
  • Thank you Greg. This post was posted by myself.
    – Joe Inner
    Commented Jun 23, 2016 at 11:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.