Hi,I'm Japanese.
I'm not good at English, but I want you to tell me this problem.
I want to upload files from log server to box using boxAPI in python at regular intervals.
First, I try this code using docs.
#coding: UTF-8 from boxsdk import JWTAuth from boxsdk import Client # JWT????????????? sdk = JWTAuth( client_id="XXXX", client_secret="XXXX", enterprise_id="XXXX", jwt_key_id="XX, rsa_private_key_file_sys_path="XXXX", rsa_private_key_passphrase=str.encode("XXXX") ) # ????????????? client = Client(sdk) # ???????????? file_path = '/box/upload/testfile20190204_1' file_name = 'testfile20190204_1D' folder_id = '0' box_file = client.folder(folder_id).upload(file_path, file_name)
I can upload files related to the application.(test-boxapi)
but I want to upload box user's folder like this.
I'd like some advice.
Thanks.