Coder Social home page Coder Social logo

floneu / dropbox-sdk-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dropbox/dropbox-sdk-js

0.0 2.0 0.0 2.19 MB

Dropbox JavaScript SDK —

Home Page: http://dropbox.github.io/dropbox-sdk-js

License: MIT License

Python 0.60% JavaScript 99.23% Shell 0.16%

dropbox-sdk-js's Introduction

Dropbox JavaScript SDK

Build Status npm version The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments. It provides common services for making API requests and helper utilities contributed by the community.

Documentation

Please view our full JavaScript SDK documentation at http://dropbox.github.io/dropbox-sdk-js.

Prerequisites

This library depends on the Promise and Fetch globals which require a polyfill (whatwg-fetch, es6-promise) for unsupported browsers and a wrapper around request within Node.js applications. We advise using the isormophic-fetch library which supports fetch within both environments.

Quickstart

For a quick overview the below example will install the package and use it as a CommonJS module. For more alternative loading options please view our Getting started tutorial.

Install the SDK with npm

$ npm install --save dropbox

Include the Dropbox or DropboxTeam class to start making your API calls.

require('isomorphic-fetch'); // or another library of choice.
var Dropbox = require('dropbox').Dropbox;
var dbx = new Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN_HERE' });
dbx.filesListFolder({path: ''})
  .then(function(response) {
    console.log(response);
  })
  .catch(function(error) {
    console.log(error);
  });

Examples

See examples/ for working examples of how the SDK can be used in a few different environments.

Contributing

Please see CONTRIBUTING.md for information on how to contribute, setup the development environment and run tests.

Versioning

We will try to follow semver as close as possible. That means bug fixes will be patch releases (1.0.1 -> 1.0.2), additional functionality like new endpoints will be minor releases (1.0.1 -> 1.1.0) and breaking changes to both the library and the API endpoints it hits, will be major releases (1.0.1 -> 2.0.0).

This SDK will be taking the dropbox package name on npm from the legacy SDK, that uses the old version of the Dropbox API. This will bump the version number from 0.10.3 to 2.0.0, which should avoid breaking changes due to semver assumptions.

dropbox-sdk-js's People

Contributors

4ian avatar adam187 avatar beckhvr avatar bengourley avatar bobdickinson avatar braincore avatar coderaiser avatar ir-fuel avatar krieb avatar nicoduj avatar npmcdn-to-unpkg-bot avatar patgauvingeek avatar pierrickp avatar pran1990 avatar rileytomasek avatar robertmaloney avatar sidhuko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.