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? :)
Have you created an app in Box at developer.box.com? You need to create an app there and then have it authorized by the admin of that Box instance. You need to provide the client ID to the admin and they need to authorize your app.