box-api

When will the Box v1 api cease to function?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 00:29:31
问题 I am trying to determine which version of the Box api I should use. My decision hinges on the timeline of EOL of the v1 api. I don't want to finish up my app, and just before (or shortly after) the release of the app, the v1 api quits working. I would gladly use the v2 api, but I am writing a C# app. Since there is a C# SDK for the v1 api, it would be more convenient (in the short-term) to use v1 of the api; but like I said, I'm concerned about the EOL of the v1 api. 回答1: We began the process

When will the Box v1 api cease to function?

梦想的初衷 提交于 2019-12-01 20:53:08
I am trying to determine which version of the Box api I should use. My decision hinges on the timeline of EOL of the v1 api. I don't want to finish up my app, and just before (or shortly after) the release of the app, the v1 api quits working. I would gladly use the v2 api, but I am writing a C# app. Since there is a C# SDK for the v1 api, it would be more convenient (in the short-term) to use v1 of the api; but like I said, I'm concerned about the EOL of the v1 api. We began the process of deprecating the v1 API in December of 2013. The v2 API was made generally available (GA) a year prior to

Load, save and use of authentication data in Box Android API

我只是一个虾纸丫 提交于 2019-12-01 04:32:38
问题 I've been recently trying to implement Box in my Android app. I know how to launch the authentication activity and get BoxAndroidClient object ready to operate on it, but I have got no idea on how to save tokens (SharedPreferences?), load them and then authenticate using loaded tokens, so the user won't have to login to his box account every time he would like to access his files in cloud. I tried to refresh previously saved tokens (because of Exception that told me that my AccessToken is

Box.api oauth2 acces token request error “Invalid grant_type parameter or parameter missing” when using POSTMAN

别说谁变了你拦得住时间么 提交于 2019-12-01 00:50:53
The documentation ( http://developers.box.com/oauth/ ) suggests using POSTMAN or curl. in this example, the clientID is 123, secret code is 456 and so on. I am using Postman. In a prior step, I have obtained an access code via: https://www.box.com/api/oauth2/authorize?response_type=code&client_id=123 let's say the response is xyz In the next step, I use POSTMAN to issue a POST command (urlencoded) https://www.box.com/api/oauth2/token?grant_type=authorization_code&client_id=123&client_secret=456&code=xyz I do all of this within 30 seconds of obtaining the code in step 1. The error is {"error":

Use SAML Single Sign-On to obtain OAuth access token or code for using Box.com API

允我心安 提交于 2019-11-30 22:47:44
We have SAML-based single sign-on (SSO) enabled between our company's Intranet Portal and Box so that the users do not use username and passwords to login to Box.com. They just click on a button on Intranet Portal which posts a SAML assertion to Box.com to authenticate. We would like to provide the ability to our users to search their Box documents directly from the Intranet Portal and the Box.com API looks like a perfect fit. However, it requires OAuth access token. The question is: Is there any way to obtain the OAuth token from SAML assertion? The Box Embed allows embedding of folders view

How to get an access token without Box’s authorization page

只愿长相守 提交于 2019-11-29 09:33:21
问题 I have been granted access(collaborate) in a folder. What I need is to access the folder daily and fetch files from it. Right now the developer token I generate expires in 1 hour. Is there a way I can get the authorization code without the first leg, which requires a user interface. This way I can refresh the access toke whenever I fetch files. 回答1: You should be able to refresh the token without getting an authorization code. When the access token is sent back, a refresh token is also issued

Why do refresh tokens expire after 14 days

烈酒焚心 提交于 2019-11-29 09:18:23
Each refresh token is valid for 14 days. Why do the refresh tokens expire? Peter 14 days was based on what is considered best practice in implementing OAuth2. See Why do access tokens expire? for a pretty comprehensive answer about why OAuth2 refresh tokens expire. We are interested in hearing what number bigger than 14 would work for your application. We picked 14 days based on initial feedback, surveys from application developers, as well as looking at application logins by users. A high majority of users login with apps more often than every 14 days. Can you explain your use case? What

Box API always returns invalid grant_type parameter on obtaining access token

陌路散爱 提交于 2019-11-28 10:29:18
问题 I'm writing my own Box SDK for WP8 to make the most out of Tasks. I am having trouble obtaining an access token. I always get this as a return: {"error":"invalid_request","error_description":"Invalid grant_type parameter or parameter missing"} The code (all in C#) I'm using is: internal const String TokenURL = "https://api.box.com/oauth2/token"; CloudHttpAsync.DownloadResponceStreamAsync ( CloudHttpAsync.PostAsync ( TokenURL, new MemoryStream ( UTF8Encoding.UTF8.GetBytes ( HttpUtility

Why do refresh tokens expire after 14 days

让人想犯罪 __ 提交于 2019-11-28 02:46:48
问题 Each refresh token is valid for 14 days. Why do the refresh tokens expire? 回答1: 14 days was based on what is considered best practice in implementing OAuth2. See Why do access tokens expire? for a pretty comprehensive answer about why OAuth2 refresh tokens expire. We are interested in hearing what number bigger than 14 would work for your application. We picked 14 days based on initial feedback, surveys from application developers, as well as looking at application logins by users. A high