Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drbx-js-backbone

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drbx-js-backbone

a drbx-js backbone plugin

  • 0.7.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#drbx-js-backbone

Join the chat at https://gitter.im/moszeed/drbx-js-backbone
a promise wrapper for backbone, to sync to a dropbox account

#how to use install from npm

npm i drbx-js-backbone

and require like this

var Backbone = require('drbx-js-backbone);

##usage examples ####init, with popup driver and login

var Backbone = require('drbx-js-backbone);
    Backbone.init({
        client  : { key : [Dropbox API Key] },
        auth    : new Dropbox._Dropbox.AuthDriver.Popup({
            receiverUrl     : [receiverUrl],
            rememberUser    : true
        })
    });

    Backbone.login()
        .then(function isLoggedIn() {
            console.log('user is logged in');
        })
        .catch(function(err) {
            console.log(err);
        });

####get accountInfo

Backbone.DrbxJs.accountInfo()
    .then(function getUserData(userData) {
        console.log(userData);
    })
    .catch(function(err) {
        console.log(err);
    });

####create a model

var Model = new Backbone.Model.extend({
	url: '/path/to/file'
});

####create a collection

var Collection = new Backbone.Collection.extend({
	url: '/path/to/file'
	model: Model
});

Keywords

FAQs

Package last updated on 18 Jun 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