Socket
Book a DemoInstallSign in
Socket

dropbox-auth-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropbox-auth-cli

Fetch the access token of your Dropbox Platform app from the command line

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

dropbox-auth-cli

Fetch the access token of your Dropbox Platform app from the command line.

Prerequisites

If you want to work with the Dropbox API, you need an access token. Access tokens are tied to Dropbox Platform apps, so you first need to register your app as a Dropbox Platform app:

https://www.dropbox.com/developers/apps/create

Installation

npm install dropbox-auth-cli -g

CLI Usage

From the command line, run dropbox-auth and enter your Dropbox Platform App key and secret.

The Dropbox access token will be stored in ~/.config/dropbox.json.

Programmatic Usage

You can run the module programmaticly as well:

var dropboxAuth = require('dropbox-auth-cli');

dropboxAuth(function (err, token) {
  console.log('The users token is:' token);
});

Keywords

dropbox

FAQs

Package last updated on 11 Oct 2014

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