./print-users.js <your API token here>
[email protected] active
[email protected] suspended
[email protected] active
...
- Install NodeJS
- Git clone this repo ([email protected]:2d51a17ad0b691b4d032265b7c54ee79.git)
npm install
./print-users.js <your API token here>
[email protected] active
[email protected] suspended
[email protected] active
...
npm install
const request = require('request') | |
const token = process.argv[2] | |
request({ | |
method: 'POST', | |
json: true, | |
headers: { | |
Authorization: `Bearer ${token}` | |
}, | |
params: { | |
limit: 200, | |
include_removed: false | |
}, | |
url: 'https://api.dropboxapi.com/2/team/members/list' | |
}, function (req, err, json) { | |
json.members.forEach(member => { | |
console.log(member.profile.email, member.profile.status['.tag']) | |
}) | |
}) |