./print-users.js <your API token here>
user1@fullscreen.com active
user3@fullscreen.com suspended
user1@fullscreen.com active
...
- Install NodeJS
- Git clone this repo (git@gist.github.com:2d51a17ad0b691b4d032265b7c54ee79.git)
npm install
./print-users.js <your API token here>
user1@fullscreen.com active
user3@fullscreen.com suspended
user1@fullscreen.com 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']) | |
| }) | |
| }) |