A Developer Token is an Access Token available to developers during development
and testing. These tokens are short lived as they expire after 60 minutes and
can not be refreshed automatically.
Developer tokens are always authenticated as the developer's user account,
not any other user. This is different from most of the other authentication
methods.
var config = new BoxConfig("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", new Uri("http://localhost"));
var session = new OAuthSession("YOUR_DEVELOPER_TOKEN", "N/A", 3600, "bearer");
var client = new BoxClient(config, session);
from boxsdk import Client, OAuth2
auth = OAuth2(
client_id='YOUR_CLIENT_ID',
client_secret='YOUR_CLIENT_SECRET',
access_token='DEVELOPER_TOKEN_GOES_HERE',
)
client = Client(auth)
me = client.user().get()
print('My user ID is {0}'.format(me.id))
var BoxSDK = require('box-node-sdk');
var sdk = new BoxSDK({
clientID: 'YOUR-CLIENT-ID',
clientSecret: 'YOUR-CLIENT_SECRET'
});
var client = sdk.getBasicClient('YOUR-DEVELOPER-TOKEN');
Developer tokens should not be used in production environments
The Developer Token should only be used for development and testing purposes. As
tokens automatically expire and can not be refreshed automatically they are of
limited use in a production environment.