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
0
votes
1 answer

Box API File Download Failing on Arbitrary Files

I'm struggling to debug an issue I'm currently having with the Box-API. Given a few thousand of a users files I am able to consistently successfully download most of the files, but other files are consistently failing with the following…
Ben Zittlau
  • 2,345
  • 1
  • 21
  • 30
0
votes
1 answer

Can a web_link be shared with API v2.0?

You can create a web_link file on a Box Folder. The web_link can be shared via Box UI, but I could not do it with API v2.0: Neither: PUT /files/{file id} nor PUT /web_links/{file id} worked. Both returned HTTP 404 when used with the id…
OKE
  • 21
  • 2
0
votes
3 answers

Invalid JSON with box-api

def get_item_url(itemid, itemtype): if itemtype=="folder" or itemtype=="FOLDER": url = "https://api.box.com/2.0/folders/"+itemid headers = {'Authorization' : 'BoxAuth api_key='+apikey+'&auth_token='+auth_token,} payload =…
Icallitvera
  • 166
  • 1
  • 3
  • 13
0
votes
1 answer

Box API v2 How to add a collaboration for a single user to a folder using email address?

I can do that using Box API v1, but v2 require user_id which I don't know how to get to send invitation.
Tung Do
  • 1,423
  • 3
  • 13
  • 27
0
votes
0 answers

box-api Download a File: how to save raw text response to file with correct encoding

I implemented downloading a file. I received raw string data. I save this data to a file, but can't open it, because file is invalid. I tried to download jpg image. I think this is a result of incorrect converting this data to bytes. What Encoding I…
O. V.
  • 125
  • 1
  • 8
0
votes
2 answers

Does the box api provide a way to see a user's mentions?

In the v2 API, i see the events endpoint and the Comments event type. But I don't see anyway of retrieving Comments where I've been explicitly mentioned; how do I know, other than parsing the comment content that I've been called out?
Paul Allen
  • 349
  • 1
  • 9
0
votes
1 answer

can i set "redirect url" dynamically?

I have two problems - 1) I need to set the redirect url depending on a server i work on, which means that i need to have the ability to change the redirect url dynamically, is there a way to set the redirect url using the API, and not through the…
ALX
  • 113
  • 1
  • 1
  • 10
0
votes
1 answer

Box-API gives 401 in python but not with cURL

curl https://api.box.com/2.0/folders/0 -H "Authorization: BoxAuth api_key=API_KEY&auth_token=AUTH_TOKEN" This works and returns exactly what I would expect it to. request = urllib2.Request("https://api.box.com/2.0/folders/0") request.addheaders =…
Icallitvera
  • 166
  • 1
  • 3
  • 13
0
votes
1 answer

box.net v2 api rest endpoints

This may sound very stupid question , but I can't find any documentation that gives me this info : I want to make calls to v2 api from javascript.What are the endpoints for it,I only get the cUrl in docs.I have the auth_token and api_key and want to…
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

internal server error while uploading file to box.net

Hi I am getting internal server error while uploading file to box.net.
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

Direct download link for files using box api

We want to get a direct download link for a file that expires after some time, is there any end point for this in v2 api. Dropbox has a media API which does it good enough. https://www.dropbox.com/developers/reference/api#media We checked the docs…
Anurag
  • 77
  • 9
0
votes
1 answer

Is it possible to write a box.com api script to display the contents of my own folders?

from a quick review of their documentation, it appears that the box.com api is geared towards writing applications to allow users to log in and interact with their own box accounts. I want a user of my website to be able to view documents that I…
benino
  • 577
  • 2
  • 6
  • 16
0
votes
1 answer

Getting 500 for get_account_tree call in box API

I am getting 500 http status code for few user when i am making get_account_tree call. For only one user I am getting application_restricted, how can this be possible? all other users are working fine. I am making a curl call like this: curl…
Anurag
  • 77
  • 9
0
votes
1 answer

How to authenticate user coming from File Action

Is there a way to authenticate a user coming from a File Action without requiring ticket-> redirect->token? Here's the scenario: User adds our web app to their account on Box.com web site User selects a file clicks on "Open with Our App" (File…
0
votes
0 answers

Box timeout on uploading of very large file

We are trying to upload very large (+1Gb) files to Box via the upload api using python's httplib. So that we don't have to keep the whole file in memory, we are using code like: CHUNK_SIZE = 1024 * 1024 data = from_file.read(CHUNK_SIZE) while data: …
brettcvz
  • 2,371
  • 1
  • 13
  • 14