Socket
Socket
Sign inDemoInstall

node-datastores

Package Overview
Dependencies
71
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-datastores

Node.js wrapper for Dropbox Datastore API


Version published
Maintainers
1
Install size
4.71 MB
Created

Readme

Source

#Node.js wrapper for Dropbox Datastore API

###Usage

var DropboxDatastore = require('../src/dropbox-datastore-node');
var options = {
        app_key: '...',
        app_secret: '...',
        response_type: 'code',
        redirect_uri: 'http://localhost:3000/' // The / is the path and is required
    };
var datastore = new DropboxDatastore(options);

###Methods

datastore.getInfo(fn(data));

datastore.listDatastore(fn(data));

datastore.getCreateDatastore(NAME,fn(data));

datastore.retrieveSnapshot(HANDLE,fn(data));

datastore.putDelta(HANDLE,CHANGES,fn(data));

datastore.deleteDatastore(HANDLE,fn(data));

###Testing

The test need the config file which contains the app key and secret. For easy testing I also included an access token which is used for testing.

exports.options = {
    app_key: '...',
    app_secret: '...',
    response_type: 'code',
    redirect_uri: 'http://localhost:3000/' // The / is the path and is required
};

exports.test_token = 'y-8E3SDJgGMAAAAAAAAAAdOLY39769xtn9AUbLA1-jtwhEHGv2jHXs2m5X6FgddI'; // Test token

###TODO Implementing all the endpoint of the current API Simplyfying the put_delta endpoint to make CRUD operations easier

Keywords

FAQs

Last updated on 08 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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