Questions tagged [boxapiv2]

Box API V2 using oAuth 2.0

Box offers a new API V2, following the oAuth 2.0 protocol. The previous version of Box APIs (V1) has been deprecated in favor of the new V2 API as of January 2014.

152 questions
11
votes
4 answers

How to download files with Box API & Python

I have currently the upload portion of my code working, how would I go about converting this into a program that will download the respective files from the box folder? This is the upload program: import requests import json #the user acces…
Steve-O
  • 387
  • 1
  • 4
  • 10
9
votes
3 answers

Working with the Box.com SDK for Python

I am trying to get started with the Box.com SDK and I have a few questions. from boxsdk import OAuth2 oauth = OAuth2( client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET', …
Steve-O
  • 387
  • 1
  • 4
  • 10
8
votes
1 answer

java.lang.NoSuchFieldError: PUBLIC_ONLY while using Box api in android in signed build

I have developed android application which contains Dropbox,Google drive and Box cloud service. I tested it and everything was working. After that I signed it and I realized that debug apk size was 8.5MB whereas signed apk size was 7MB.Still I…
SwapnilD
  • 117
  • 1
  • 13
5
votes
1 answer

Downloading file though Box API 2.0 giving 200 as response instead of 302 found

I'm trying to download a file from Box.com through API using the following code.
Rajesh Manilal
  • 1,104
  • 9
  • 20
5
votes
3 answers

Upload file with Box.com PHP API

I am trying to upload a file to box.com using Box API. According to the docs, the curl request has to look like this: curl https://upload.box.com/api/2.0/files/content \ -H "Authorization: Bearer ACCESS_TOKEN" -X POST \ -F…
Prakhar
  • 2,270
  • 19
  • 26
4
votes
0 answers

How to add custom logo to OAuth 2.0 app created from Box developer console?

We want to add our product logo here instead of the default logo listed by Box. Is there a way to do it?
Bharath PS
  • 163
  • 5
4
votes
1 answer

Box Java SDK - Unable to download/delete specific versions of a file

I am using the latest Box SDK for interacting with the Box API. I am able to successfully upload, download, delete and upload new version of a file. However, I am unable to to delete one file version out of many, as suggested on the SDK page…
Raj Saxena
  • 852
  • 10
  • 18
3
votes
0 answers

Box API Slow Search Performance

We have an enterprise Box account with about 17k files. Using the search endpoint it takes about 5-6 seconds to retrieve the first set of results from the query (see…
Mark G
  • 2,848
  • 1
  • 24
  • 32
3
votes
1 answer

Box API Java SDK search function is returning limited no. of files

When I am trying to search some term from JAVA sdk of BOX API , I am getting only 400 Results while when i search the same term on app.box.com i am getting 1270 results. Please help regarding this . BoxAPIConnection api = new…
RendezAWS
  • 103
  • 9
3
votes
1 answer

How to auto generate box file download URL?

I am using box API to get the meta-data for files stored in a box folder. When I make the API call, I get all the metadata including the download URL, but it is null for all files. I have to manually go to each file, and then have to click on share…
user3653832
  • 31
  • 1
  • 3
3
votes
1 answer

BOX API:how to get location attribute in response using https://api.box.com/2.0/files/{fileId}/content for downloading

My code is given below WebResource webResource1 = cl.resource("https://api.box.com/2.0/files/{fileId}/content"); ClientResponse res1 = webResource1.header("Authorization", "Bearer"+p1.getAccess_token()).get(ClientResponse.class); String jsonStr1 =…
Romi Misra
  • 33
  • 7
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

How can I use Python Keyring in conjunction with Box API OAuth2?

I'm pretty new to Python and programming and I am trying to figure out how to automate the box.com authentication process and it's kicking my butt. Any help would be appreciated! I have this code below, which obviously wasn't mine but came from a…
JacobElliott
  • 127
  • 1
  • 1
  • 8
2
votes
1 answer

BOX API - Choosing Authentication

I'm writing a backend application which will connect to an enterprise's box and should be able to access (get info, download content, search, get events about) all content in the enterprise. I tried reading the following over and…
Or Bar Yaacov
  • 259
  • 3
  • 13
2
votes
1 answer

How to use the box-ios-sdk with predefined access token and refresh token?

I am writing a framework that wraps functionalities of Box, for that I am using the box-ios-sdk. But all of their authentication methods uses their own flow. I have to input the appID and appSecret and then start the process to get an access token…
1
2 3
10 11