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

How to include custom metadata fields in a request for folder items?

I am integrating Box functionality in my Winforms application. I am able to add and retrieve custom metadata tags to and for a file on Box. When I fetch the items in a Box folder I do not get the custom metadata fields that I added. How can I…
V K
  • 1,645
  • 3
  • 26
  • 57
0
votes
1 answer

Get Box token without user interaction

I have a C# application where I need to connect to Box and retrieve files automatically without user interaction. I have a client id and a secret id but now sure how I get the authentication code. How do I make the OAuth call?
Craig
  • 1,205
  • 2
  • 21
  • 54
0
votes
2 answers

How to get authorize and then get access token in Box API

How to get authorize and then get access token in Box API using Console or Library project in C#. I have tried authorize API but it returns HTML. I need only THE_AUTHORIZATION_CODE so that it can be passed into Token API for getting access_token. Or…
Sandy
  • 6,285
  • 15
  • 65
  • 93
0
votes
0 answers

Nullpointer Exception while downloading a file from box.com Using BOX ANDROID API V2?

I am integrating BOX.COM with my android application.So I use BoxAndroidLibraryV2 with my app.I could upload a file, but downloading file results in error. below is the code I am using. if (object instanceof BoxAndroidFile) { //…
BABU K
  • 917
  • 13
  • 35
0
votes
2 answers

can not delete file using BOX SDK on android

I'm fresh with box sdk, I'm trying to use it to delete my box file,but it seems doesn't work. Here is my code, authentication works fine but delete function has problem: public class MainActivity extends ActionBarActivity { private Button…
Kun
  • 580
  • 2
  • 13
0
votes
2 answers

BOX- API get shared folders/files data from box using the rest API without using Oauth

I am trying to get data from Box api without using the access token, the folder containing data is a shared folder containing files that can be updated by box admin.I want to use the rest api and get the metadata of changed files and use that in the…
Dragon
  • 719
  • 1
  • 9
  • 18
0
votes
1 answer

Changing user folder collaborating type in box using Salesforce Toolbox

I'm trying to change Box folder collaboration type for user from salesforce Apex trigger. The first thoughts were to use box.Toolkit but it looks like this class does not have updateCollaboration or changeCollaboration method, only create. I guess…
0
votes
1 answer

How do we set folder Email Options using Box API V2?

I am attempting to automatically add upload and delete e-mail notification for user-group for a box folder. The reason I need to do it automatically is that we create several sub-folders programmatically for each project, and only one of the…
0
votes
1 answer

Handling long running folder moves

I'm calling the folder move API call (via the Python SDK -- by extending the Client class) and am running into problems when the user content I'm trying to move takes a very long time or doesn't fully complete. Any guidance on proper error handling…
rayvd
  • 15
  • 3
0
votes
1 answer

Android Box API unable to function after initial OAuth

I'm working with the Box API with Android. I'm using Android Studio and testing on the simulator. I have a button that I'm using to initiate the OAuth request, after authenticating, I return to my app and a different button should show up to perform…
Parth
  • 1,226
  • 7
  • 28
  • 49
0
votes
1 answer

Is it possible to generate a Box upload embed widget via the API?

I'd like to programmatically create Box.com upload embed widgets for specific folders for our account. It looks like it is possible to create a shared link: https://box-content.readme.io/#create-a-shared-link-for-a-folder But I don't see any way do…
davidscolgan
  • 7,508
  • 9
  • 59
  • 78
0
votes
1 answer

Box api v2 upload file using php

I have been working on box api. I could get everything to work but the file upload. Here is the code: $path = 'https://upload.box.com/api/2.0/files/content'; $method = 'POST'; $headers = array('Authorization Bearer ' . $accessToken); $attributes =…
0
votes
2 answers

curl_exec for uploading files in box api using php fails

I am able to upload the file using curl on the terminal with the following: curl https://upload.box.com/api/2.0/files/content \ > -H "Authorization: Bearer {access-code}" -X POST \ > -F attributes='{"name":"tested.png",…
0
votes
1 answer

BOX API - Is it possible to authorize user on background?

I want to use Box on my web application using Box Embed. But to get to specific folder, I have to use BOX API to get folder information and build my box embed programatically. With Box API, I need to authenticate user before I can make API calls, I…
nix
  • 3,262
  • 2
  • 21
  • 36
0
votes
1 answer

Upload file to API v2 of Box by Webclient

I'm working with the Box API v2, I've try to do the upload file with the WebClient but without success. From the API: curl https://upload.box.com/api/2.0/files/content \ -H "Authorization: Bearer ACCESS_TOKEN" -X POST \ -F…
Han Tran
  • 2,073
  • 4
  • 22
  • 37