【文件属性】:
文件名称:dropbox-auth-cli:从命令行获取 Dropbox Platform 应用的访问令牌
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-19 15:44:03
JavaScript
dropbox-auth-cli
从命令行获取 Dropbox Platform 应用的访问令牌。
先决条件
如果您想使用 Dropbox API,您需要一个访问令牌。 访问令牌与 Dropbox Platform 应用程序相关联,因此您首先需要将您的应用程序注册为 Dropbox Platform 应用程序:
安装
npm install dropbox-auth-cli -g
命令行使用
从命令行运行dropbox-auth并输入您的 Dropbox Platform App 密钥和密码。
Dropbox 访问令牌将存储在~/.config/dropbox.json 。
程序化使用
您也可以以编程方式运行模块:
var dropboxAuth = require ( 'dropbox-auth-cli' ) ;
dropboxAuth ( function ( err , t
【文件预览】:
dropbox-auth-cli-master
----index.js(4KB)
----package.json(859B)
----LICENSE(1KB)
----bin.js(38B)
----.gitignore(587B)
----README.md(854B)