box-api

Lexical or Preprocessor issue when trying to archive project using the v2 BoxSDK

北城余情 提交于 2019-12-13 00:16:40
问题 We're using the new v2 BoxSDK, and followed the steps on the github repo to integrate it as a subproject. Everything builds and runs fine, but we can't archive the project. We get the error: Lexical or Preprocessor Issue: 'BoxSDK/BoxSDK.h' file not found I've tried several combinations of setting User Header Search Paths, but can't seem to find anything that works. It looks like the header files are being put in: "IntermediateBuildFilesPath/UninstalledProducts/include" Has anyone had any luck

Invalid credentials when trying to obtain box api tokens

爷,独闯天下 提交于 2019-12-12 21:48:21
问题 Here is my problem: I followed the instructions posted at you tube: "Get Box Access Tokens in 2 Quick Steps", using the client_id and client_secret provided by box step1: get the auth_code I copy and paste the following request in firefox: https://www.box.com/api/oauth2/authorize?response_type=code&client_id=MY_CLIENT_ID&state=authenticated step2: use the code from step1 to get the access and refresh tokens, using curl: curl -v -k https://www.box.com/api/oauth2/token -d 'grant_type

What is the intended use case for app auth and app users?

依然范特西╮ 提交于 2019-12-12 14:03:23
问题 I am trying to understand what is the intended use case for app auth and app users. Im basically thinking about building an app that would use Box to store data of users that would subscribe to our service. Our service would allow each user to access and view their data. If I have an account that basically owns the data of all the subscribed users, can I use the enterprise access token as a base for authentication while using the user account token to restrict the user to only viewing the

Is this a bug of Box API v2 when getting events

橙三吉。 提交于 2019-12-12 08:59:28
问题 I have spotted an strange behavior when getting events from Box using the BOX API v2. The scenario I got is like follows: Upload 14 files to the box.net using box API v1. Get events using stream_position=now, this gives a stream position, say 1234 and no entries are returned. Get events using stream_position=1234, this gives a new stream position, say 7890 and no entries are returned. ( Until this point it is all as expected ) Get events using stream_position=7890, now this gives a dummy

Security sandbox violation cannot load data from box.net

此生再无相见时 提交于 2019-12-12 05:38:39
问题 I have an application which upload/download files to/from box.net. the application works fine when not deployed on server but when I deploy it on Google App Engine the following error is encountered. Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://somexyz.appspot.com/xyzsample.swf cannot load data from http://box.net/api/1.0/download/abcdef/123456. I have included the below lines of code in as3 Security.allowDomain("*"); and placed crossdomain.xml

Privileges required to return the list of enterprise users in Box

﹥>﹥吖頭↗ 提交于 2019-12-12 05:37:26
问题 This question has been raised before here, but I am getting the same issue, despite being added as a co-admin under my account. The previous question does not make it clear as to what the fix was to get it working, hence me asking again. I am trying to get a list of users using the following GET request: https://api.box.com/2.0/users I am setting the Authorization header with a valid access token. However, when I make the request I get back a 403 Forbidden error, with the message "The request

Box API node.js how to delete folder and display all files inclusive folders

十年热恋 提交于 2019-12-12 04:15:17
问题 I need working sample codes for delete a folder and list all items + folders in the root. I use node.js and as example I can create folder with client.folders.create('0', 'New Folder', function(err, newFolder) { if(err) throw err; console.log('dff') }); But if I try then related to docs client.folders.delete client.folders.delete('0', 'New Folder', function(err, newFolder) { if(err) throw err; console.log('dff') }); I get error "Unexpected API Response [403 Forbidden] (access_denied

using the v2 box api: how do I get a user id

一世执手 提交于 2019-12-11 23:48:23
问题 I want to add a collaboration using the v2 api - but it requires a user id. How do I get the user id if all I have is the login name? 回答1: When adding a collaborator, you can send either the user id or the user's email address: i.e. both curl https://api.box.com/2.0/collaborations \-H "Authorization: Bearer ACCESS_TOKEN" \ -d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "id": "USER_ID"}, "role": "editor"}' \ -X POST and curl https://api.box.com/2.0/collaborations \-H

Can I add custom metadata to files?

大城市里の小女人 提交于 2019-12-11 20:11:01
问题 I am interested in developing an enterprise app for Box.com . I would like to be able to categorize documents by additional metadata, for example a client id. Is there any way to do this within the Box API v2? Could this be done with tags? (I can't find much about tags in the API Documentation.) 回答1: Tags seem like a reasonable solution for this. However, they haven't yet been released in v2 but will be eventually. You can probably try using the v1 tags methods in the interim. 来源: https:/

Post the data with header in curl not working in php?

独自空忆成欢 提交于 2019-12-11 18:29:41
问题 I'm trying to create the box app users using PHP. The curl for create user as follows, and it is working on terminal curl https://api.box.com/2.0/users \ -H "Authorization: Bearer <Access token>" \ -d '{"name": "New User", "is_platform_access_only": true}' \ -X POST Same thing I have tried with php But it is giving the following error {"type":"error","status":400,"code":"invalid_request_parameters","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Invalid input parameters in