Can free plan use Limited-access app API?
Hi,
I'm trying to figure out how to use Box API from my nodeJS APP.
I trided both app types (custom app and limited-access app) but I didn't find a way how to generate persisten API key without need of OAUTH or necessity to re-generate api key every 60 minutes.
When I use limited-access app and when I try to generate "Primary access token", I'm receiving error "This application needs to be authorised by the enterprise admin"
How can I get that?
I also tried to register developer account as mentioned in docs: https://support.box.com/hc/en-us/articles/4636662134803-Creating-Your-Developer-Account
but when I follow link for developer sign up page: https://account.box.com/signup/developer It brings me to the pricing page.
Any advice please? Is there any way how to do that with free account?
Thanks
-
It seems that nothing is working on free accounts.
Just tried another way described in the docs:
Box View Authentication with App Tokens
Box View uses a long-lived access token that is generated from the Box Developer Console to make API calls. These access tokens cannot be automatically refreshed from the SDK, and must be manually changed in your application code.
To use the primary or secondary access token generated in the Developer Console, simply create a basic client with that token:
var BoxSDK = require('box-node-sdk'); var sdk = new BoxSDK({ clientID: 'YOUR-CLIENT-ID', clientSecret: 'unused' }); var client = sdk.getBasicClient('YOUR-APP-TOKEN');
but receiving:
"Expired Auth: Auth code or refresh token has expired [401 Unauthorized]"
サインインしてコメントを残してください。
コメント
3件のコメント