slack-ruby-client 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/integration_test.yml +19 -0
- data/.github/workflows/pr_lint.yml +1 -1
- data/.github/workflows/test.yml +1 -0
- data/CHANGELOG.md +9 -0
- data/README.md +18 -14
- data/SECURITY.md +9 -0
- data/bin/commands/admin_analytics.rb +16 -10
- data/bin/commands/admin_apps.rb +48 -42
- data/bin/commands/admin_apps_approved.rb +17 -11
- data/bin/commands/admin_apps_requests.rb +27 -21
- data/bin/commands/admin_apps_restricted.rb +17 -11
- data/bin/commands/admin_audit_anomaly_allow.rb +22 -16
- data/bin/commands/admin_auth_policy.rb +37 -31
- data/bin/commands/admin_barriers.rb +44 -38
- data/bin/commands/admin_conversations.rb +221 -165
- data/bin/commands/admin_conversations_ekm.rb +17 -11
- data/bin/commands/admin_conversations_restrictAccess.rb +35 -29
- data/bin/commands/admin_emoji.rb +50 -44
- data/bin/commands/admin_inviteRequests.rb +34 -28
- data/bin/commands/admin_inviteRequests_approved.rb +16 -10
- data/bin/commands/admin_inviteRequests_denied.rb +16 -10
- data/bin/commands/admin_roles.rb +46 -0
- data/bin/commands/admin_teams.rb +26 -20
- data/bin/commands/admin_teams_admins.rb +16 -10
- data/bin/commands/admin_teams_owners.rb +16 -10
- data/bin/commands/admin_teams_settings.rb +59 -53
- data/bin/commands/admin_usergroups.rb +45 -39
- data/bin/commands/admin_users.rb +91 -85
- data/bin/commands/admin_users_session.rb +72 -66
- data/bin/commands/admin_users_unsupportedVersions.rb +15 -9
- data/bin/commands/api.rb +14 -8
- data/bin/commands/apps.rb +15 -9
- data/bin/commands/apps_connections.rb +13 -7
- data/bin/commands/apps_event_authorizations.rb +16 -10
- data/bin/commands/apps_manifest.rb +48 -42
- data/bin/commands/auth.rb +21 -15
- data/bin/commands/auth_teams.rb +16 -10
- data/bin/commands/bookmarks.rb +50 -44
- data/bin/commands/bots.rb +15 -9
- data/bin/commands/calls.rb +49 -43
- data/bin/commands/calls_participants.rb +24 -18
- data/bin/commands/chat.rb +150 -144
- data/bin/commands/chat_scheduledMessages.rb +19 -13
- data/bin/commands/conversations.rb +233 -227
- data/bin/commands/dialog.rb +15 -9
- data/bin/commands/dnd.rb +46 -40
- data/bin/commands/emoji.rb +14 -7
- data/bin/commands/files.rb +110 -105
- data/bin/commands/files_comments.rb +15 -9
- data/bin/commands/files_remote.rb +73 -67
- data/bin/commands/functions_workflows_steps.rb +22 -0
- data/bin/commands/functions_workflows_steps_responses.rb +22 -0
- data/bin/commands/migration.rb +16 -10
- data/bin/commands/oauth.rb +18 -12
- data/bin/commands/oauth_v2.rb +28 -22
- data/bin/commands/openid_connect.rb +26 -20
- data/bin/commands/pins.rb +33 -26
- data/bin/commands/reactions.rb +52 -46
- data/bin/commands/reminders.rb +53 -47
- data/bin/commands/rtm.rb +15 -9
- data/bin/commands/search.rb +43 -37
- data/bin/commands/stars.rb +38 -32
- data/bin/commands/team.rb +47 -39
- data/bin/commands/team_billing.rb +13 -7
- data/bin/commands/team_preferences.rb +13 -7
- data/bin/commands/team_profile.rb +14 -8
- data/bin/commands/tooling_tokens.rb +14 -8
- data/bin/commands/usergroups.rb +64 -58
- data/bin/commands/usergroups_users.rb +27 -21
- data/bin/commands/users.rb +111 -105
- data/bin/commands/users_admin.rb +28 -22
- data/bin/commands/users_prefs.rb +13 -7
- data/bin/commands/users_profile.rb +26 -20
- data/bin/commands/views.rb +47 -41
- data/bin/commands/workflows.rb +36 -30
- data/bin/slack +48 -43
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_conversations.rb +78 -0
- data/lib/slack/web/api/endpoints/admin_roles.rb +73 -0
- data/lib/slack/web/api/endpoints/chat.rb +2 -2
- data/lib/slack/web/api/endpoints/conversations.rb +1 -1
- data/lib/slack/web/api/endpoints/emoji.rb +2 -0
- data/lib/slack/web/api/endpoints/files.rb +0 -2
- data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +28 -0
- data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +28 -0
- data/lib/slack/web/api/endpoints/pins.rb +2 -0
- data/lib/slack/web/api/endpoints/team.rb +11 -1
- data/lib/slack/web/api/endpoints/usergroups.rb +1 -1
- data/lib/slack/web/api/endpoints/users_profile.rb +1 -1
- data/lib/slack/web/api/endpoints.rb +6 -0
- data/lib/slack/web/api/errors.rb +62 -0
- data/lib/slack/web/api/templates/command.erb +18 -12
- data/lib/tasks/web.rake +0 -6
- data/slack-ruby-client.gemspec +0 -1
- data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +31 -0
- data/spec/slack/web/api/endpoints/admin_roles_spec.rb +30 -0
- data/spec/slack/web/api/endpoints/functions_workflows_steps_responses_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/functions_workflows_steps_spec.rb +13 -0
- metadata +13 -19
- data/bin/commands.rb +0 -69
- data/lib/slack/web/api/templates/commands.erb +0 -6
@@ -1,52 +1,58 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'AppsManifest methods.'
|
8
|
+
command 'apps_manifest' do |g|
|
9
|
+
g.desc 'Create an app from an app manifest.'
|
10
|
+
g.long_desc %( Create an app from an app manifest. )
|
11
|
+
g.command 'create' do |c|
|
12
|
+
c.flag 'manifest', desc: 'A JSON app manifest encoded as a string. This manifest must use a valid app manifest schema - read our guide to creating one.'
|
13
|
+
c.action do |_global_options, options, _args|
|
14
|
+
puts JSON.dump(@client.apps_manifest_create(options))
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
g.desc 'Permanently deletes an app created through app manifests'
|
19
|
+
g.long_desc %( Permanently deletes an app created through app manifests )
|
20
|
+
g.command 'delete' do |c|
|
21
|
+
c.flag 'app_id', desc: 'The ID of the app you want to delete.'
|
22
|
+
c.action do |_global_options, options, _args|
|
23
|
+
puts JSON.dump(@client.apps_manifest_delete(options))
|
24
|
+
end
|
25
|
+
end
|
23
26
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
g.desc 'Export an app manifest from an existing app'
|
28
|
+
g.long_desc %( Export an app manifest from an existing app )
|
29
|
+
g.command 'export' do |c|
|
30
|
+
c.flag 'app_id', desc: 'The ID of the app whose configuration you want to export as a manifest.'
|
31
|
+
c.action do |_global_options, options, _args|
|
32
|
+
puts JSON.dump(@client.apps_manifest_export(options))
|
33
|
+
end
|
34
|
+
end
|
32
35
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
36
|
+
g.desc 'Update an app from an app manifest'
|
37
|
+
g.long_desc %( Update an app from an app manifest )
|
38
|
+
g.command 'update' do |c|
|
39
|
+
c.flag 'app_id', desc: 'The ID of the app whose configuration you want to update.'
|
40
|
+
c.flag 'manifest', desc: 'A JSON app manifest encoded as a string. This manifest must use a valid app manifest schema - read our guide to creating one. As this method entirely replaces any previous configuration, manifest must contain both unmodified and modified fields.'
|
41
|
+
c.action do |_global_options, options, _args|
|
42
|
+
puts JSON.dump(@client.apps_manifest_update(options))
|
43
|
+
end
|
44
|
+
end
|
42
45
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
g.desc 'Validate an app manifest'
|
47
|
+
g.long_desc %( Validate an app manifest )
|
48
|
+
g.command 'validate' do |c|
|
49
|
+
c.flag 'manifest', desc: 'The manifest to be validated. Will be validated against the app manifest schema - read our guide.'
|
50
|
+
c.flag 'app_id', desc: 'The ID of the app whose configuration you want to validate.'
|
51
|
+
c.action do |_global_options, options, _args|
|
52
|
+
puts JSON.dump(@client.apps_manifest_validate(options))
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
50
56
|
end
|
51
57
|
end
|
52
58
|
end
|
data/bin/commands/auth.rb
CHANGED
@@ -1,22 +1,28 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'Auth methods.'
|
8
|
+
command 'auth' do |g|
|
9
|
+
g.desc 'Revokes a token.'
|
10
|
+
g.long_desc %( Revokes a token. )
|
11
|
+
g.command 'revoke' do |c|
|
12
|
+
c.flag 'test', desc: 'Setting this parameter to 1 triggers a testing mode where the specified token will not actually be revoked.'
|
13
|
+
c.action do |_global_options, options, _args|
|
14
|
+
puts JSON.dump(@client.auth_revoke(options))
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
g.desc 'Checks authentication & identity.'
|
19
|
+
g.long_desc %( Checks authentication & identity. )
|
20
|
+
g.command 'test' do |c|
|
21
|
+
c.action do |_global_options, options, _args|
|
22
|
+
puts JSON.dump(@client.auth_test(options))
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
20
26
|
end
|
21
27
|
end
|
22
28
|
end
|
data/bin/commands/auth_teams.rb
CHANGED
@@ -1,16 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'AuthTeams methods.'
|
8
|
+
command 'auth_teams' do |g|
|
9
|
+
g.desc 'List the workspaces a token can access.'
|
10
|
+
g.long_desc %( List the workspaces a token can access. )
|
11
|
+
g.command 'list' do |c|
|
12
|
+
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
|
13
|
+
c.flag 'include_icon', desc: 'Whether to return icon paths for each workspace. An icon path represents a URI pointing to the image signifying the workspace.'
|
14
|
+
c.flag 'limit', desc: 'The maximum number of workspaces to return. Must be a positive integer no larger than 1000.'
|
15
|
+
c.action do |_global_options, options, _args|
|
16
|
+
puts JSON.dump(@client.auth_teams_list(options))
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
14
20
|
end
|
15
21
|
end
|
16
22
|
end
|
data/bin/commands/bookmarks.rb
CHANGED
@@ -1,53 +1,59 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'Bookmarks methods.'
|
8
|
+
command 'bookmarks' do |g|
|
9
|
+
g.desc 'Add bookmark to a channel.'
|
10
|
+
g.long_desc %( Add bookmark to a channel. )
|
11
|
+
g.command 'add' do |c|
|
12
|
+
c.flag 'channel_id', desc: 'Channel to add bookmark in.'
|
13
|
+
c.flag 'title', desc: 'Title for the bookmark.'
|
14
|
+
c.flag 'type', desc: 'Type of the bookmark i.e link.'
|
15
|
+
c.flag 'emoji', desc: 'Emoji tag to apply to the link.'
|
16
|
+
c.flag 'entity_id', desc: 'ID of the entity being bookmarked. Only applies to message and file types.'
|
17
|
+
c.flag 'link', desc: 'Link to bookmark.'
|
18
|
+
c.flag 'parent_id', desc: "Id of this bookmark's parent."
|
19
|
+
c.action do |_global_options, options, _args|
|
20
|
+
puts JSON.dump(@client.bookmarks_add(options))
|
21
|
+
end
|
22
|
+
end
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
24
|
+
g.desc 'Edit bookmark.'
|
25
|
+
g.long_desc %( Edit bookmark. )
|
26
|
+
g.command 'edit' do |c|
|
27
|
+
c.flag 'bookmark_id', desc: 'Bookmark to update.'
|
28
|
+
c.flag 'channel_id', desc: 'Channel to update bookmark in.'
|
29
|
+
c.flag 'emoji', desc: 'Emoji tag to apply to the link.'
|
30
|
+
c.flag 'link', desc: 'Link to bookmark.'
|
31
|
+
c.flag 'title', desc: 'Title for the bookmark.'
|
32
|
+
c.action do |_global_options, options, _args|
|
33
|
+
puts JSON.dump(@client.bookmarks_edit(options))
|
34
|
+
end
|
35
|
+
end
|
33
36
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
g.desc 'List bookmark for the channel.'
|
38
|
+
g.long_desc %( List bookmark for the channel. )
|
39
|
+
g.command 'list' do |c|
|
40
|
+
c.flag 'channel_id', desc: 'Channel to list bookmarks in.'
|
41
|
+
c.action do |_global_options, options, _args|
|
42
|
+
puts JSON.dump(@client.bookmarks_list(options))
|
43
|
+
end
|
44
|
+
end
|
42
45
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
g.desc 'Remove bookmark from the channel.'
|
47
|
+
g.long_desc %( Remove bookmark from the channel. )
|
48
|
+
g.command 'remove' do |c|
|
49
|
+
c.flag 'bookmark_id', desc: 'Bookmark to remove.'
|
50
|
+
c.flag 'channel_id', desc: 'Channel to remove bookmark.'
|
51
|
+
c.flag 'quip_section_id', desc: 'Quip section ID to unbookmark.'
|
52
|
+
c.action do |_global_options, options, _args|
|
53
|
+
puts JSON.dump(@client.bookmarks_remove(options))
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
51
57
|
end
|
52
58
|
end
|
53
59
|
end
|
data/bin/commands/bots.rb
CHANGED
@@ -1,15 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'Bots methods.'
|
8
|
+
command 'bots' do |g|
|
9
|
+
g.desc 'Gets information about a bot user.'
|
10
|
+
g.long_desc %( Gets information about a bot user. )
|
11
|
+
g.command 'info' do |c|
|
12
|
+
c.flag 'bot', desc: 'Bot user to get info on.'
|
13
|
+
c.flag 'team_id', desc: 'encoded team id or enterprise id where the bot exists, required if org token is used.'
|
14
|
+
c.action do |_global_options, options, _args|
|
15
|
+
puts JSON.dump(@client.bots_info(options))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
13
19
|
end
|
14
20
|
end
|
15
21
|
end
|
data/bin/commands/calls.rb
CHANGED
@@ -1,52 +1,58 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'Calls methods.'
|
8
|
+
command 'calls' do |g|
|
9
|
+
g.desc 'Registers a new Call.'
|
10
|
+
g.long_desc %( Registers a new Call. )
|
11
|
+
g.command 'add' do |c|
|
12
|
+
c.flag 'external_unique_id', desc: 'An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service.'
|
13
|
+
c.flag 'join_url', desc: 'The URL required for a client to join the Call.'
|
14
|
+
c.flag 'created_by', desc: 'The valid Slack user ID of the user who created this Call. When this method is called with a user token, the created_by field is optional and defaults to the authed user of the token. Otherwise, the field is required.'
|
15
|
+
c.flag 'date_start', desc: 'Call start time in UTC UNIX timestamp format.'
|
16
|
+
c.flag 'desktop_app_join_url', desc: 'When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL.'
|
17
|
+
c.flag 'external_display_id', desc: 'An optional, human-readable ID supplied by the 3rd-party Call provider. If supplied, this ID will be displayed in the Call object.'
|
18
|
+
c.flag 'title', desc: 'The name of the Call.'
|
19
|
+
c.flag 'users', desc: 'The list of users to register as participants in the Call. Read more on how to specify users here.'
|
20
|
+
c.action do |_global_options, options, _args|
|
21
|
+
puts JSON.dump(@client.calls_add(options))
|
22
|
+
end
|
23
|
+
end
|
21
24
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
g.desc 'Ends a Call.'
|
26
|
+
g.long_desc %( Ends a Call. )
|
27
|
+
g.command 'end' do |c|
|
28
|
+
c.flag 'id', desc: 'id returned when registering the call using the calls.add method.'
|
29
|
+
c.flag 'duration', desc: 'Call duration in seconds.'
|
30
|
+
c.action do |_global_options, options, _args|
|
31
|
+
puts JSON.dump(@client.calls_end(options))
|
32
|
+
end
|
33
|
+
end
|
31
34
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
g.desc 'Returns information about a Call.'
|
36
|
+
g.long_desc %( Returns information about a Call. )
|
37
|
+
g.command 'info' do |c|
|
38
|
+
c.flag 'id', desc: 'id of the Call returned by the calls.add method.'
|
39
|
+
c.action do |_global_options, options, _args|
|
40
|
+
puts JSON.dump(@client.calls_info(options))
|
41
|
+
end
|
42
|
+
end
|
40
43
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
44
|
+
g.desc 'Updates information about a Call.'
|
45
|
+
g.long_desc %( Updates information about a Call. )
|
46
|
+
g.command 'update' do |c|
|
47
|
+
c.flag 'id', desc: 'id returned by the calls.add method.'
|
48
|
+
c.flag 'desktop_app_join_url', desc: 'When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL.'
|
49
|
+
c.flag 'join_url', desc: 'The URL required for a client to join the Call.'
|
50
|
+
c.flag 'title', desc: 'The name of the Call.'
|
51
|
+
c.action do |_global_options, options, _args|
|
52
|
+
puts JSON.dump(@client.calls_update(options))
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
50
56
|
end
|
51
57
|
end
|
52
58
|
end
|
@@ -1,25 +1,31 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# This file was auto-generated by lib/tasks/web.rake
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
4
|
+
module Slack
|
5
|
+
module Cli
|
6
|
+
class App
|
7
|
+
desc 'CallsParticipants methods.'
|
8
|
+
command 'calls_participants' do |g|
|
9
|
+
g.desc 'Registers new participants added to a Call.'
|
10
|
+
g.long_desc %( Registers new participants added to a Call. )
|
11
|
+
g.command 'add' do |c|
|
12
|
+
c.flag 'id', desc: 'id returned by the calls.add method.'
|
13
|
+
c.flag 'users', desc: 'The list of users to add as participants in the Call. Read more on how to specify users here.'
|
14
|
+
c.action do |_global_options, options, _args|
|
15
|
+
puts JSON.dump(@client.calls_participants_add(options))
|
16
|
+
end
|
17
|
+
end
|
15
18
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
g.desc 'Registers participants removed from a Call.'
|
20
|
+
g.long_desc %( Registers participants removed from a Call. )
|
21
|
+
g.command 'remove' do |c|
|
22
|
+
c.flag 'id', desc: 'id returned by the calls.add method.'
|
23
|
+
c.flag 'users', desc: 'The list of users to remove as participants in the Call. Read more on how to specify users here.'
|
24
|
+
c.action do |_global_options, options, _args|
|
25
|
+
puts JSON.dump(@client.calls_participants_remove(options))
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
23
29
|
end
|
24
30
|
end
|
25
31
|
end
|