Got an interesting question from a developer:
I have been shared a Box folder via the following link:
https://asmodeeuk.app.box.com/v/HobbyOrder
I would like to programatically access these files in python or at least download them locally.
I have set up a developer box account and I am just using the developer token for now.
TOKEN = 'DEV_TOKEN'
auth = OAuth2(None, None, access_token=TOKEN)
box = Client(auth)
I have also added this to my favourites in Box.
favourites_id = 8166214818
items = box.collection(collection_id=favourites_id).get_items()
for item in items:
print(item.id)
I can use the above code to see that the folder is in my favourites collection
{'etag': '0',
'id': '20105505368',
'name': 'Asmodee Box',
'sequence_id': '0',
'type': 'web_link',
'url': 'https://asmodeeuk.app.box.com/v/HobbyOrder'}
However I cannot figure out how to use the above to open the folder and list / download the items within.
Can anyone help with this next step? 🙂