Hello, this is Yane
I created a folder using the BOX API.
However, I can’t find the folder created in all files on the browser.
You can find the created folder by searching the folder with BOX API.
Why can’t I see the folder I created in all files on my browser?
code:
from boxsdk import Client
from boxsdk import CCGAuth
# Arguments fetched from the BOX management screen
CLIENT_ID = ‘aaaaaaaaaaaaaa’
CLIENT_SECRET = ‘dddddddddd’ # client secret code’
ENTERPRISE_ID = ‘cccccccccccccc’
auth = CCGAuth(
client_id=CLIENT_ID,
client_secret=CLIENT_SECRET,
enterprise_id=ENTERPRISE_ID
)
client = Client(auth)
print(f’Id of the authenticated user is: {client.user().get().id}‘)
subfolder = client.folder(‘0’).create_subfolder(‘My Stuff’)
print(f’Created subfolder with ID {subfolder.id}’)
list items in folder
items = client.folder(folder_id=‘0’).get_items()
for items in items:
print(f’{item.type.capitalize()} , {item.name}"')
result:
Id of the authenticated user is: 27822023285
All Files
Folder , My Stuff"
Process completed with exit code 0