New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-datastores

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-datastores

Node.js wrapper for Dropbox Datastore API

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 08 May 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc