Questions tagged [boxsdk]
22 questions
2
votes
1 answer
Box SDK client as_user request requires higher privileges than provided by the access token
I have this code in my Django project:
# implememtation
module_dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) # get current directory
box_config_path = os.path.join(module_dir, 'py_scripts/transactapi_funded_trades/config.json')…

Prosy Arceno
- 2,616
- 1
- 8
- 32
2
votes
1 answer
Box Access denied - insufficient permission 403 Python JWT sdk
I am trying to upload a file to Box using Python. I have followed these steps:
Create a custom app with JWT
Set up the following settings:
In "Configuration" tab, select "App Access Level" = "App Access Only"
Under "Application Scopes", I checked…

pattidegner
- 107
- 1
- 10
1
vote
1 answer
I would like to set a default folder for my Box API download function in nodeJS
I'm using Box SDK for nodeJS and I have a function for downloading files.
I just need to setup the download to be dropped in a project subfolder
I've read the documentation and could not find any parameter for this
async function…

CMartins
- 3,247
- 5
- 38
- 53
1
vote
0 answers
Box node sdk on Deno throws "Not implemented: crypto.Sign" error
I want to use Box Node SDK on Deno (v1.30.3) . here is a simple example.
import BoxSDK from "npm:box-node-sdk@2.8.1";
import conf from "/path/to/config.json" assert {type: "json"};
const sdk = BoxSDK.getPreconfiguredInstance(conf);
const client =…

Hiro
- 131
- 6
1
vote
2 answers
How to access files in shared box folder via Python Box SDK
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…

user1348463
- 87
- 1
- 1
- 8
1
vote
0 answers
Get top level folders only using Python Box SDK
I am trying to run a search query in Box root folder to find folder names that contain a particular string. However I only want the folders that are 1 level below (similar to a ls command). However get_items() will return folders matching the string…

Lyman Zerga
- 1,415
- 3
- 19
- 40
1
vote
0 answers
How to Upload an entire Folder to Box using Python
I'm have an entire folder structure that I would like to upload into BOX. The folder structure looks like this:
documents
└── A
├── A1
│ ├── A1A.jpg
│ └── A1B.jpg
└── A2
├── A2A.png
├── A2B.png
├──…

A. Lewis
- 67
- 8
1
vote
2 answers
Replace existing file on upload
I am trying to upload a file in to a folder in the box using the below code:
folder_id = '22222'
new_file = client.folder(folder_id).upload('/home/me/document.pdf')
print('File "{0}" uploaded to Box with file ID {1}'.format(new_file.name,…

Tom J Muthirenthi
- 3,028
- 7
- 40
- 60
1
vote
0 answers
Collaborate BOX folder based on DS group
So we want to collaborate BOX folders based on DS group (group email).
This group email would be entered from the UI application. The backend creates few folders and needs to add all people in the group as collaborators.
One way would be to list out…

Ravisha
- 3,261
- 9
- 39
- 66
1
vote
1 answer
Copy files from box folder to AWS s3 bucket
I am working to copy box files to S3 bucket. How to get file object from box file to copy in to S3 bucket using box-java-sdk
I have to tried to get file's metadata from box folder, but end up with limited documentation to get file object.
import…

pat
- 135
- 2
- 10
1
vote
1 answer
'NoneType' object has no attribute 'from_settings_file' (boxsdk.JWTAuth)
I'm attempting to use django to upload files to box.com using boxsdk, while deploying the app to heroku. The problem is that my code works fine on local dev server, but not on heroku. It also works if the app is run locally with heroku local web
For…

Joel G Mathew
- 7,561
- 15
- 54
- 86
0
votes
0 answers
The program is unable to identify the folder while performing an operation on selecting the folder and uploading the file on BOX java sdk
I am developing an application in spring-boot which uploads the file in a searched folder. Even though I have followed all instructions given the program is not working. It is not identifying the folder even though the folder is present.
package…
0
votes
1 answer
Get all Box Ids of files in all subdirectories of a parent folder in Box API
What is the most efficient way of getting all Box Ids for every file in all subdirectories of a parent folder in Box API using the .net core SDK?

Irish Redneck
- 983
- 7
- 32
0
votes
1 answer
How do you access only a file's shared_link permissions on Box.com using python?
I am trying to just find files where the shared_link permissions are False.
file1 = user_client.file(file_id).get()
shared_link =file1.shared_link
permissions = shared_link.permissions
if permissions == False:
print(f'File "{file1.name}" is…

Ian Horn
- 27
- 4
0
votes
1 answer
Implementing a Cache service for Box API token in ASP.NET Core
So I have used OneDrive with MS Graph and it has built in functions by default as shown below to store the current token in cache so you do not need to request it each time as shown below in…

Irish Redneck
- 983
- 7
- 32