Back to Top

libraries > Dropbox.js

new Dropbox(tokenKey)

Methods to interact with the Dropbox API.

Parameters

Name Type Description
tokenKey string

The key of the secret containing a Google oAuth token. Defaults to google.oauth.

Properties

Name Type Description
request Oauth

Authenticated request.

Examples

const Dropbox = require('vendor/Dropbox.js');
const dropbox = new Dropbox();
const getResponse = dropbox.request.post('https://api.dropboxapi.com/2/files/save_url', {
  path: '/file.jpg',
  url: 'https://example.com/file.jpg',
});

Returns

class