node-box-sdk
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -14,3 +14,3 @@ var Hapi = require('hapi'); | ||
server.start(function () { | ||
console.log('Server running at:', server.info.uri); | ||
console.log('server is listening'); | ||
}); |
{ | ||
"name": "node-box-sdk", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Node.js Box SDK", | ||
@@ -20,2 +20,3 @@ "main": "box.js", | ||
"chai": "^2.3.0", | ||
"cookie-parser": "^1.3.5", | ||
"express": "^4.13.0", | ||
@@ -22,0 +23,0 @@ "hapi": "^8.6.1", |
@@ -5,22 +5,15 @@ # Node.js Box SDK | ||
This module interacts with the Box APIs and returns the requested data as well as an encrpyted string containing the Box Access Token and Box Refresh Token which allows client side apps to store this as a cookie for users. | ||
This module interacts with the Box Cotent and View APIs. The Node.js Box SDK module returns the data requested as well as an encrypted string containing the Box Access Token and Box Refresh Token. | ||
It abstracts away some of the complexity in regards to updating the Box Token upon expiration. However, provides flexibility for the developer to handle the Box callback and storage of the encrypted Box Token on a user by user basis. | ||
### Install | ||
npm install node-box-sdk | ||
### Configure | ||
var box = require('node-box-sdk'); | ||
box.configure({ | ||
client_id: 'id', // Box Content Client ID | ||
client_secret: 'secret', // Box Content Client Secret | ||
api_key: 'apikey', // Box View API Key | ||
encrypt: { password: 'password' } // password for box token encrpytion | ||
}); | ||
### Express Server Example | ||
//Todo | ||
### Express Use Example | ||
[Using node-box-sdk inside Express](https://github.com/cydneymikel/node-box-sdk/tree/master/examples/express) | ||
### Hapi Server Example | ||
### Hapi Use Example | ||
[Using node-box-sdk inside Hapi](https://github.com/cydneymikel/node-box-sdk/tree/master/examples/hapi) | ||
Sorry, the diff of this file is not supported yet
309857
36
770
7
19