box-python-sdk
box-python-sdk copied to clipboard
List file names from a shared link
Hello, the following code took a long time (> 5 minutes) to list 5 items, and it eventually crashed.
I expect these 6 lines should return results in <10 seconds.
My question is: why the Box SDK take very long time to break down? Thanks.
from boxsdk import DevelopmentClient
client = DevelopmentClient()
shared_folder = client.get_shared_item('https://app.box.com/s/u3flbp13zjydegrxjb2uepagp1vb6bj2')
items = client.folder(shared_folder).get_items(offset = 0, limit = 5)
for item in items:
print('{0} {1} is named "{2}"'.format(item.type.capitalize(), item.id, item.name))