node-box-api
Currently supporting basic Box Content API
Working towards full feature support of Box Content API & Box View API
https://box-content.readme.io/reference
https://box-view.readme.io/reference
Install
npm install node-box-api
Setup
var Box = ; var box = client_id: 'APPLICATION_CLIENT_ID' client_secret: 'APPLICATION_CLIENT_SECRET' access_token: 'USER_ACCESS_TOKEN' refresh_token: 'USER_REFRESH_TOKEN';
Examples
Folders API
After instantiating the Box class you can call API
resources by calling box.folders
Get Root Folder's Info
boxfolders;
Get Folder's Info
boxfolders;
Get Folder's Items
var params = limit: 100 offset: 0 fields: 'name,etc';boxfolders;
The params
argument is optional
boxfolders;
Files API
After instantiating the Box class you can call API
resources by calling box.files
Get File's Info
boxfiles;
Download File
boxfiles;
The download function does accept params
, however it is
not currently supported
Get Thumbnail
var params = min_height: 32 min_width: 32 max_height: 256 max_width: 256 extension: 'jpg';boxfiles;
The params
argument is optional
boxfiles;