Questions tagged [box-api]

Questions about the API provided by Box, Inc. for their online storage service.

The Box API lets you create applications and web sites that integrate with Box. By leveraging Box's RESTful API, you can add simple, yet secure file management, sharing, and collaboration to your app.

Please consult http://developers.box.com for full API documentation.

Box, Inc. was formerly known as Box.net.

1055 questions
4
votes
1 answer

Is there a way to hotlink images from a Box account

I would like to view images on my box account natively inside a simple rails app. The goal is to run a slide-show with these images. I looked for the necessary parameters to pass each images relative url into a tag. It appears that I…
asecs
  • 41
  • 2
4
votes
4 answers

Box.com Embedded File/Folder Viewer code via api

Looking for a way to get the embed code for Box files via the API. We have integrated Box in our app and the new embedded file/folder viewer is awesome. I'd love to give people the option to view their files/folder within our app via the embed…
CFDan
  • 43
  • 1
  • 3
4
votes
1 answer

Box Rest APIv2: Move File or Folder

There is a move operation in v1 API. But is there any equivalent for v2 Rest API? There is copy function in V2, I tried to replace it as move but no love, with operation not permitted error or something like that: curl…
metric
  • 193
  • 1
  • 2
  • 9
4
votes
2 answers

Box api v2 "folders" response is too limited

I'm integrating Box into an iOS app using the Box v2.0 api. The first problem I've hit is that the response to API calls for "entries" by the "folders" api request is too limited. What the api currently returns for each folder "entry" is something…
John
  • 191
  • 6
3
votes
0 answers

415 Unsupported Media Type uploading file via CURL to Box.com

EDIT 1 Changing Content-Type:application/json to Content-Type:multipart/form as suggested in the comments solved the 415 error. My Script looks like this now: Set oShell = CreateObject ("WScript.Shell") oShell.run "cmd.exe /K cd…
mikegross
  • 1,674
  • 2
  • 12
  • 27
3
votes
1 answer

How to access Box folder shared with me using C# SDK

Someone has shared a Box.com folder with me using the link. I need to be able to use the C# SDK or REST API to download the documents from their folder. I have tried all 3 authentication types and have attempted to access with both the C# SDK and…
Daniel
  • 63
  • 6
3
votes
2 answers

How to get total file count of a specific folder including subfolder

I know there is NOT a direct way to get all files + folders of a hierarchy of BOX folder. we have to recursively get items of subfolders. However, if I simply need a count estimation, is it possible to get the basic info? The Transferring tool…
Xiaodong Liang
  • 2,051
  • 2
  • 9
  • 14
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

Creating signature in Java with existing public key for JWT

I need your help once again... I want to access the Box API and authorize using a JWT (Json Web Token). To do so, I need to create a Assertion: "Every JWT assertion is composed of three components, the header, the claims, and the signature. - The…
user6165745
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

What is the intended use case for app auth and app users?

I am trying to understand what is the intended use case for app auth and app users. Im basically thinking about building an app that would use Box to store data of users that would subscribe to our service. Our service would allow each user to…
Aaron
  • 2,364
  • 2
  • 31
  • 56
3
votes
1 answer

uploading files to BOX using v2 API

I'm trying to upload a file to box using curl, I can create and view folders but not upload a file. According to the documentation the curl request is: curl https://upload.box.com/api/2.0/files/content \ -H "Authorization: Bearer ACCESS_TOKEN" -X…
Dave
  • 878
  • 8
  • 19
3
votes
2 answers

Box API OAuth2: multiple redirect_uris, long lasting refresh token

I have two questions about Box's Oauth2 API in a testing environment. Is it possible to have multiple redirect_URI addresses? I'd like to use one address for production (e.g., https://my_site.com/box_redirects_here), one for ongoing development…
Roy2012
  • 11,755
  • 2
  • 22
  • 35
3
votes
1 answer

Can you lookup files by path using the box API?

I am using the Java SDK (version 3.1.7) and cannot seem to find a way to find a file by path; the only way seems to be to walk through the root, check that the name exists, that it is a directory, pick its id, goto 1. Also, there doesn't seem to be…
fge
  • 119,121
  • 33
  • 254
  • 329
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