box-python-sdk icon indicating copy to clipboard operation
box-python-sdk copied to clipboard

List file names from a shared link

Open zhanxw opened this issue 4 years ago • 0 comments

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))


zhanxw avatar Oct 31 '21 19:10 zhanxw