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
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
3
votes
3 answers

Custom url 'this page include script from unauthenticated source' error

I am using windows 7 and python 2.7 I am using Custom url for launching an app. First I am opening a web page of BOX asking for user credentials for authentication. In the url, made redirect_uri = customuri://box_auth. So, BOX sends the success code…
imp
  • 1,967
  • 2
  • 28
  • 40
3
votes
0 answers

Box API returns 404 error for folder collaborated or shared by outside user

Have a situation where an outside user collaborates or shares a folder with a enterprise user. API call impersonating the enterprise user returns a 404 error. Please see the http exchange below using curl. Some sensitive information is masked.…
user3022596
  • 123
  • 2
  • 6
3
votes
1 answer

Access denied error message when trying to create a shared link to a folder in Box

So following on from my previous question around permissions to add collaborators, I am now having further permissions issues when trying to create a shared link to a folder in Box using the API. So to confirm, I have the "Manage an enterprise"…
Justin Phillips
  • 1,358
  • 2
  • 12
  • 26
3
votes
2 answers

Login with Box account

Is it possible to implement a "login with your Box account" feature similar to what we have with Facebook and others oauth providers? I've tried to build something like that following Box's oauth tutorial, but every time the user authenticates, it…
andrecardoso
  • 235
  • 4
  • 11
3
votes
4 answers

How to logout a user using Box V2 iOS SDK

In the V1 iOS SDK it was possible to logout the current user as follows: [Box logoutWithCallbacks:^(id on) { on.after(^(BoxCallbackResponse response) { }); }]; How is it done using the V2…
pstoppani
  • 2,531
  • 1
  • 20
  • 20
3
votes
1 answer

Box.com Android Library v2 redirect_uri?

I am using the new Box.com Android library v2 hosted on Github by Box to develop an Android app which allows managing Box.com files. I stuck at exchanging the authToken for an accessToken. When I don't specify a redirect_Uri I will get a…
Basic Coder
  • 10,882
  • 6
  • 42
  • 75
3
votes
1 answer

How to upload multiple files on Box.com via the Rest API V2

I am working on a Java application that will move files and folders to box.com. I am consuming the REST API V2 and was able to upload a single file by making a multpart post to the endpoint: https://upload.box.com/api/2.0/files/content. Is it…
3
votes
2 answers

BOX v2 API - Upload a file without oauth

Is it possible to upload a file via the Box V2 API without requiring the user to login. I don't want to have to make my users create Box accounts - is it possible for them to upload a file using my account, or perhaps the API key instead of OAuth?
vgg
  • 31
  • 2
3
votes
2 answers

Regarding uploading files through Java Rest Template

I am doing an Application with Spring Rest Template for making the Box.net Rest Calls. But I am facing the Problem of Not Uploading the Files through Rest-template. It is giving an Error as "Bad Request 400 Http Status Code". Here is my sample…
Rajkumar
  • 31
  • 1
  • 2
3
votes
2 answers

Authentication for Box in C# 4.0

I'm trying to get the access token using the below code in C# language, but I'm getting 400 bad request exception. Code: WebRequest httpWReq = WebRequest.Create("https://www.box.com/api/oauth2/token"); string postData =…
Harish Reddy
  • 275
  • 1
  • 2
  • 7
3
votes
2 answers

Box API v2.0 SDK for PHP

I tried to find a PHP SDK for Box API v 2.0, but didn't find it. I found only SDK for v1.0 https://github.com/box/box-php-sdk Does it exist? OR Is it possible to use refresh_token in Box API v1.0 in that v1.0 sdk…
Alex K
  • 31
  • 1
  • 2
3
votes
2 answers

box api error getting the access token: Invalid grant_type parameter or parameter missing

I am trying to get an access token and using the following url to POST the HTTP request and receiving { "error":"invalid_request", "error_description":"Invalid grant_type parameter or parameter missing" } error message . No matter what I try.…
3
votes
1 answer

Can I use the Box API to create a secure online upload only web form?

Is it possible to use the Box.com API to allow users of my website to upload files via an online form, without being able to edit or see other files I have currently online? For example, hardcoding user credentials in a script with "upload only"…
3
votes
2 answers

How to convert Box's "code" to "token" after user allows access

I'm new at this, trying to hook up Box's API v2. I successfully set up a PHP client library, which I found thanks to the link in the first paragraph on developers.box.com/auth. I've read Box's walkthrough in full more than twice along with roughly…
mcormc
  • 98
  • 10