box-api

Box API v2 uploading multiple files per single request is limited to 20

断了今生、忘了曾经 提交于 2019-12-11 16:48:15
问题 I'm using Box API v2.0. When I try to upload more than 20 files per single request, only first 20 files are uploaded on server. I receive such response: { "total_count": 20, "entries": [{ "type": "file", "id": "2365556604", ... }, ... ] } I can't find any mention about such limit in documentation, moreover I can upload any number of files using API v1.0. 回答1: We just looked into this, and it is indeed a bug with the v2 API. We are working on resolving it, and I will update here when it has

Retrieve only file from GET folder request to Box.com

柔情痞子 提交于 2019-12-11 16:33:19
问题 I need retrieve only file from a GET request to Box.com. Problem is the follow... I have a Panel where I show the files contents in a folder. Currently I get all the content and I keep only the elements that have type equals to "file". Now I need to paginate the results. I use the Box API to get an offset of result, in this way: GET https://api.box.com/2.0/folders/0/items?limit=2&offset=1 Authorization: Bearer MY_TOKEN I ask for the fist 2 elements. But is obviously that if the first 2

Is it possible to search Box items based on the metadata?

拜拜、爱过 提交于 2019-12-11 16:19:36
问题 API documentation below does not mention how to search based on the metadata. Is it really possible? Can someone point me to an example? https://developers.box.com/docs/#search thanks in advance! Milind 回答1: I had the same question and asked Box directly. This is the reply they sent me: You can only use the mdfilters parameter if you have a custom "template" in your enterprise account: https://box-content.readme.io/#metadata-object. The properties template doesn't work with the mdfilters

box file upload api from iOS is not working

╄→尐↘猪︶ㄣ 提交于 2019-12-11 14:53:59
问题 I am trying to upload a file to a box account using box's HTTP API (not iOS SDK), but for some reason its not working and returning status code 400. What is my mistake in the following code? NSString *uploadURL = @"https://upload.box.com/api/2.0/files/content"; NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession *upLoadSession = [NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:nil]; NSMutableURLRequest *request = [

creating metadata template or add field to existing template with box api [closed]

你离开我真会死。 提交于 2019-12-11 14:03:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Is there api call where User can append value on to pre existing metadata template for example lets say I have metadata template called author and has dropdown of [bob, bill, mary , mark] but i want to push "dan" to the dropdown so the dropdown will be [bob, bill, mary , mark , dan] OR Is there a api call that

Unknown exception when uploading new version of file via Box java sdk

好久不见. 提交于 2019-12-11 13:38:07
问题 I was trying to upload a new version of a file to Box via box Java SDK. Upon uploading I got this exception. com.box.sdk.BoxAPIException: Couldn't finish closing the connection to the Box API due to a network error or because the stream was already closed. at com.box.sdk.BoxAPIResponse.disconnect(BoxAPIResponse.java:159) at com.box.sdk.BoxFile.uploadVersion(BoxFile.java:471) at com.box.sdk.BoxFile.uploadVersion(BoxFile.java:440) at com.box.sdk.BoxFile.uploadVersion(BoxFile.java:430) at com

Convert cURL to be used in php function

痴心易碎 提交于 2019-12-11 09:13:16
问题 Currently im working on box platform, and trying to upload a file to the box server. Box uses cURL to upload files, and i'm trying to send cURl requests from php. So far i've converted most of the cURL commads to php jargon, but i could't figure out how to pass in the attributes(name, path, containing folder) of the file to be uploaded. here is the cURL curl https://upload.box.com/api/2.0/files/content -H "Authorization: Bearer APP_USER_TOKEN" -X POST -F attributes='{"name":"Jon_Snow.jpeg",

Dropbox / Box API direct download file with access token

心已入冬 提交于 2019-12-11 08:28:29
问题 I'm developing a web application using PHP, Dropbox API and Box API. I already have an access token to use these API. My needs are : 1. Download a file directly from Dropbox / Box server 2. Without being user authenticated in the browser 3. Without having to share the file on DropBox / Box Actually, I have a PHP script on my server that make a Curl on the file url with the access token passed throught the Authorization header. It works but on big files, my script failed due to memory limit

How to authenticate box.net programmatically?

六眼飞鱼酱① 提交于 2019-12-11 08:28:03
问题 I am using OAuth 2.0 protocol to authenticate. I am not getting any way to obtain access token programmatically without any user interaction(no UI at all). The purpose is to list all files of all users under enterprise Box.Net account. The flow I am expecting is like service account of google Drive. 回答1: This isn't possible with Box's current implementation of OAuth 2, though we're working on supporting additional grant types. 回答2: If you are using only one box enterprise account then you can

Box.com events API - Old events dropped from stream?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 08:09:13
问题 I have been testing events API against a relatively new account (created June 13, 2012). Until today, calls to the events API with a stream position of 0 would return the very first events that occurred on the account. This allowed me to track all the files that had been added to my account without traversing the folder hierarchy. Starting this week, I am no longer getting events for uploads during the first few days after I opened my account. My call is as follows: curl 'https://www.box.com