Socket
Socket
Sign inDemoInstall

node-box-sdk

Package Overview
Dependencies
23
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name": "node-box-sdk",
"version": "0.1.3",
"version": "0.1.4",
"description": "Node.js Box SDK",

@@ -5,0 +5,0 @@ "main": "box.js",

@@ -5,9 +5,33 @@ # Node.js Box SDK

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.
This module interacts with the Box Content 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.
Examples of how to integrate this module into Express as middleware and into Hapi as a plugin are located in the examples folder. The examples provided show how to attach the node-box-sdk to the server object and then set the returned encrypted token as a cookie.
### Status
#####Content API
- Authentication - Completed
- Folders - Completed
- Files - Partially Complete - In Progress
- Shared Items - Completed
- All Additional Methods - In Progress
#####View API
- Document - Partially Complete - In Progress
- Sessions - Partially Complete - In Progress
- All Additional Methods - In Progress
### Install
npm install node-box-sdk
### Configure
box.configure({
client_id: 'content_api_client_id',
client_secret: 'content_api_client_secret',
api_key: 'view_api_client_secret',
encrypt: { password: 'pick_a_password' }
});

@@ -20,1 +44,7 @@ ### Express Use Example

### Inspiration + References
API link mixins and dynamic REST API generator - [Paypal SDK](https://github.com/paypal/PayPal-node-SDK)
Testing with Casper & PhantomJS - [Node Box](https://github.com/adityamukho/node-box-sdk)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc