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

Boxapi: Move/copy admin files to service account

I have been using box since from a year. I manually upload files to Box. A few days back I integrated my nodejs code to Box (api's). I have created an app and set up Client Credentials Grant Authentication, which is a service account by default and…
Elliot
  • 174
  • 3
  • 11
0
votes
1 answer

How to use box sdk in java?

Developer token works great, but I need a permanent solution. I'm building a personal site and just need to read the items in the folder, don't need any user authentication. When I try using cliend id and secret this.api = new…
iii2
  • 1
  • 1
0
votes
0 answers

How to keep alive box token?

I have a rails app running on heroku from where I need to create Box.com! folder on an item creation callback using gem for the Box Content API! The Standard OAuth 2.0 (User Authentication) of box api providing token which last an hour. I need the…
morshed
  • 21
  • 1
  • 6
0
votes
1 answer

box-python-sdk is not returning total_count for Get Enterprise Users and Get Group

box-python-sdk methods 'Get Enterprise users' and 'Get Group' supports 'Offset-based Paging', according to api docs they should return total_count, limit, offset fields that can be used for next request/pagination. # sdk method to get enterprise…
Khurshid
  • 458
  • 1
  • 5
  • 20
0
votes
1 answer

use box-api progress listener

I am trying to download a file from Box API application using their download function as stated here . ... FileOutputStream stream = new FileOutputStream(info.getName()); // Provide a ProgressListener to monitor the progress of the…
0
votes
1 answer

Test: Using self, expected: 1 time with arguments received: 0 times

I'm currently working on writting test for a Proxy Class that uses Boxr gem to make http calls to Box API. Currently, I have the following method: class BoxApi #### def upload_file_to_box(file_path, file, box_folder_id) …
Steven Aguilar
  • 3,107
  • 5
  • 39
  • 89
0
votes
1 answer

How do I use an API Connection after the authorization? Java

Technically speaking I have the authorization running and my program can use the created BoxAPIConnection to download/upload from the box cloud. But I can only get it to work within this part: public void loginButtonClicked() throws IOException,…
Bkahne
  • 1
  • 2
0
votes
1 answer

Unable to get folder by id using Boxr gem Ruby SDK for Box API

I'm currently working on a Rails 5.2 application where I'm using FormStack form service. Formstack makes use of Box for it's storing services. I started using Boxr gem to interact with the Box API. To create a client you will need a developer…
Steven Aguilar
  • 3,107
  • 5
  • 39
  • 89
0
votes
1 answer

Box API OAuth2.0 in script

I am writing a script to automate the process of regularly upload specific files to Box. After reading the BOX API, I know I have to use client-id and client-secret to get an authentication url which open in browser, then I login in by username and…
0
votes
0 answers

What is the Equivalent for "getAccountInfo().userName" in Dropbox API v2?

In Dropbox API v1 I used: String userName = dropboxAccount.getAccountInfo().userName; to get the user name and display it on the screen. Now I'm using API v2, so I tried the following code: public String getLoggedAccount() { String…
0
votes
1 answer

Removing a user from a specific user group

I need to make a call on the BOX API to remove a user from a group. I looked at the BOX API documentation - https://developer.box.com/v2.0/reference#delete-a-group-membership. The RESTful call is: DELETE…
Phil
  • 2,143
  • 19
  • 44
0
votes
1 answer

Box API can´t see my uploaded file

Related to this post Box API Node.js cant upload file 404 Error I use the awnser code from below to auth my app It works with showing my username so auth successfull. If I look in my task manager I can see that there is outgoing traffic / uptime…
t33n
  • 270
  • 1
  • 3
  • 17
0
votes
2 answers

Box API Node.js cant upload file 404 Error

I cant upload file with Box API my code: var sdk = new BoxSDK({ clientID: BOX_clientID, clientSecret: BOX_clientSecret }); // Create a basic API client var client = sdk.getBasicClient(BOX_accesstoken); var fileData =…
t33n
  • 270
  • 1
  • 3
  • 17
0
votes
2 answers

How to use cURL to download files from Box file picker URL

I am using the Box file picker in my web application to send a JS object of info. based upon the file that is chosen in the widget. In the object, part of what is returned is a URL that is valid for 15 minutes. This URL allows you to view and…
Liz
  • 1,008
  • 5
  • 19
  • 49
0
votes
1 answer

is it possible search by metadata in box api and return file and metadata together?

I'm using a metadata search in box api: https://api.box.com/2.0/search?mdfilters= The search is ok, but I'm passing metadata for search, but after return I receive only file information, not any metadata from files. Is it possible search by metadata…
Ricardo Cunha
  • 2,013
  • 6
  • 24
  • 42