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 get Box access token from a webpage html or javascript?

Hi I'm trying to login a user to Box.com from a webpage. I accomplished the first part with a simple HTML form submit:
Joels Elf
  • 714
  • 6
  • 10
0
votes
1 answer

Restrict shared links to collaborators only through box API

I am trying to setup a pre-configured folder for users in the Enterprise where the share options are limited to collaborators only. This feature is available in the web interface in the folder properties form under the security tab: "Restrict…
jwscott
  • 25
  • 7
0
votes
1 answer

HTTP 500 when trying to upload a file

Here is my Box upload POST to upload a file into a specific folder: POST /api/2.0/files/content HTTP/1.1 Authorization: Bearer ACCESS_TOKEN Accept: application/json User-Agent: SOASoftware/7-HttpCore/4 Transfer-Encoding: chunked Content-Type:…
Paul Pogonoski
  • 121
  • 2
  • 10
0
votes
1 answer

Box api for JS / Cordova app

i'v spend some time investigating if i can integrate JS app (Cordova app) with Box v2 API. I would like to receive a list of file or folders. I'm not able to find a working example for JS. Is is possible at all? Are you aware of any example?
navvn
  • 525
  • 2
  • 5
  • 9
0
votes
1 answer

Box.com API delta download

Can anyone advise the best way to synchronize files via Box API? My app needs to download deep structure of folders for offline use and currently needs to recursively scan each folder for changes. Is there any way to identify whether anything…
0
votes
1 answer

Java: How do I get user's email with box api v2

I building a java desktop app, It can download and upload files with box.com I've added a few libraries in https://github.com/box/box-java-sdk-v2/tree/master/BoxJavaLibraryV2/libs It worked, but I need i get user's email to manage account. I can't…
Ninh
  • 159
  • 1
  • 10
0
votes
2 answers

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

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
Milind Torney
  • 141
  • 1
  • 10
0
votes
0 answers

Box: Getting image url for sharing

Currently sharedLink url for a file is of html type. How can I directly get image url to share instead of getting url of html type. Currently I'm getting below url as sharedLink for an image, which is of html…
niks
  • 544
  • 11
  • 28
0
votes
1 answer

Box: Getting sharedlink parameter immediately after uploading new file

Is there any way to get sharedLink parameter, immediately after uploading a new file on box in BoxFile block. I've tried following code, but it's returning sharedlink parameter as nil. BoxFilesRequestBuilder *builder =…
niks
  • 544
  • 11
  • 28
0
votes
1 answer

Retrive different thumb dimension from BoxClient [Box.com JavaSDK]

This code retrive correctly the 32x32 thumbnail of the file: BoxClient boxClient = getBoxClient(); BoxThumbnail thumb = boxClient.getFilesManager().getThumbnail(assetId, "png", null); But what if I want to get the 128x128 or 256x256 thumb? I cannot…
RikyTres
  • 676
  • 9
  • 31
0
votes
1 answer

Getting URL to uploaded file on Box.com

I have successfully been able to upload a file Sample.pdf using a C# program utilizing the Box API. (client_id, client_secret, code, POSTMAN, etc) BoxApi.V2.Authentication.OAuth2.OAuthToken newToken =…
blue piranha
  • 3,706
  • 13
  • 57
  • 98
0
votes
0 answers

How to make Box redirect URI dynamic as redirect_uri can not be empty if you try to edit an app

Box OAuth redirect uri can be empty only when creating a new App. If you try to edit the App, redirect_uri becomes mandatory. Can someone please tell me, how to make the redirect_uri dynamic?Meaning, redirect authentication code to a server…
Muthuk
  • 3
  • 2
0
votes
1 answer

Is it possible to enumerate list of applications using box api?

Using Box api, is it possible to enumerate list of applications installed by an user? Ideally, I want to be able query permissions also.
user375868
  • 1,288
  • 4
  • 21
  • 45
0
votes
1 answer

Does box.com support Autonomous Client or client credentials grant?

Does box.com support 'Autonomous Client' or client credentials grant? I need to generate access_token programmatically and cannot do the web-server flow. Can we obtain the access_token using the 'Autonomous Client' or 'client credentials grant'…
Deepti K
  • 590
  • 2
  • 9
  • 26
0
votes
2 answers

how to use python's Request library to make an API call with an attachment and a parameter

I am using the Request library to test ReST APIs. I am facing a problem while trying to trasform the below cURL to request library Call. curl https://upload.box.com/api/2.0/files/content \ -H "Authorization: Bearer ACCESS_TOKEN" \ -F…
Deepti K
  • 590
  • 2
  • 9
  • 26