-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathindex.js
33 lines (25 loc) · 875 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
const BoxCommand = require('../../../box-command');
class UsersGetEmailAliasesCommand extends BoxCommand {
async run() {
const { flags, args } = this.parse(UsersGetEmailAliasesCommand);
let emailAliases = await this.client.users.getEmailAliases(args.userID);
await this.output(emailAliases);
}
}
UsersGetEmailAliasesCommand.aliases = [ 'users:get-email-aliases' ];
UsersGetEmailAliasesCommand.description = 'Get all Email Aliases for a User';
UsersGetEmailAliasesCommand.examples = ['box users:email-aliases 33333'];
UsersGetEmailAliasesCommand._endpoint = 'get_users_id_email_aliases';
UsersGetEmailAliasesCommand.flags = {
...BoxCommand.flags
};
UsersGetEmailAliasesCommand.args = [
{
name: 'userID',
required: true,
hidden: false,
description: 'User ID to get email aliases for',
}
];
module.exports = UsersGetEmailAliasesCommand;