Getting started with the SDK is simple. After creating a Box developer account, simply generate a new developer token and paste it into the example below. Running it will print out a list of the files and folders in your Box account.
var BoxSDK = require("your-developer-token"); var sdk = new BoxSDK({clientID: "CLIENT_ID", clientSecret: "CLIENT_SECRET"}); var client = sdk.getBasicClient("your-developer-token"); client.folders.getItems("0", {limit: 1000}) .then(items => console.log(items)) .catch(error => console.log("Error:", error));
Check out the README and sample app for more information on how to get started.