I'm currently trying to automate uploading a single file (for now) to Box from my Python automation.
I use the code from the Box developers website, which should be βsuper easy to use,β but I get an error (see above) when I try to run the simple program found on this page: https: // www. box.com/blog/introducing-box-python-sdk/ . I added the client identifier, client secret and developer token, and added the path to my zip file for download and continue to receive the above error. I have not changed anything beyond this.
Code for those who do not want to follow the link :)
from boxsdk import Client, OAuth2 oauth = OAuth2( client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET", access_token="YOUR_DEVELOPER_TOKEN", ) client = Client(oauth) shared_folder = client.folder( folder_id='0', ).create_subfolder('shared_folder') uploaded_file = shared_folder.upload('/path/to/file') shared_link = shared_folder.get_shared_link()
I installed the cryptographic program using pip and easy_install to be sure, as well as libffi and openssl and oauth2 just to be safe and nothing works. Can anybody help me?
Thanks Gary
source share