dkadia
- Total activity 28
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 7
Posts
Recent activity by dkadia-
Can i put a limit on number of file uploads per day in box folder?
AnsweredHi, We have created box folders and shared them with the internal team members to upload files. We want to put a limit on each folder so that no one can upload more than a specific number of files...
-
How to read content of a file as string using python
I am trying to read the content of a pdf file as string using the below code contentInFile = client.file(file_id = 'fileID').content().decode(encoding='utf-8', errors='ignore')But i am still getti...
-
How to get file size using Python Box API
AnsweredHi, To get the file size, i am using the parameter sizefor files in folder_1: if files.type != 'folder': print(files.size)But i am getting an error saying AttributeError: 'File' objec...
-
Error While reading files from a box folder using JWT method in python
AnsweredHi, Below code for reading files from the box folder was working for me giving me a list of all the files with their file ID items = client.folder(folder_id='folder_id').get_items(limit=100, offs...
-
Error while using JWT Oauth with Python
Hi, using the resources provided, now i am getting following error. Can you please let me know what i am doing wrong and how to fix it. Error - ValueError: Could not deserialize key data.Codefro...
-
How to completely automate getting the access token and refresh token using OAuth for Python
I was able to generate the access token and refresh token but i have to manually click on the auth_url to grant the access to box API to get the auth code. Below is my Python code. from boxsdk im...
-
How to upload a new version of the file with the new name
I want to upload a new version of a file but with the new file name. My filename has date on it. example - box file - test_6/30/2018. I have a file on my local with filename test_7/6/2018. How can...
-
name 'BoxAPIException' is not defined
AnsweredMy code is sorting and moving the files based on the file type. i am included a try and except block in case the file is already included in the folder, it should move to different folder. But i a...
-
How to download a file from the box using Box API for Python
AnsweredThis might be a simple question, but since i am new to python and Box-API, how can i download a file(mainly .PDF, .xlsx and .csv). I am using OAuth2 as authorization method.
-
How to get the size of the file in the box using python
AnsweredHi, How to get the size of the file in the box. Currently I am using below code but i doubt this is the best way to do. client.file(file_id='29***phone number removed for privacy***').content...