-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from dblock/update-slack-api-ref
Update slack api ref
- Loading branch information
Showing
24 changed files
with
236 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'Migration methods.' | ||
command 'migration' do |g| | ||
g.desc 'For Enterprise Grid workspaces, map local user IDs to global user IDs' | ||
g.long_desc %( For Enterprise Grid workspaces, map local user IDs to global user IDs ) | ||
g.command 'exchange' do |c| | ||
c.flag 'users', desc: 'A comma-separated list of user ids, up to 400 per request.' | ||
c.flag 'to_old', desc: 'Specify true to convert W global user IDs to workspace-specific U IDs. Defaults to false.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.migration_exchange(options)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'UsersAdmin methods.' | ||
command 'users_admin' do |g| | ||
g.desc 'Send an invitation to a new user by email' | ||
g.long_desc %( Send an invitation to a new user by email ) | ||
g.command 'invite' do |c| | ||
c.flag 'email', desc: 'Email address of the new user' | ||
c.flag 'channels', desc: 'Comma-separated list of IDs (not names!) for channels, which the new user will auto-join. Both channel IDs for public channels and group IDs for private chanels work.' | ||
c.flag 'first_name', desc: 'Prefilled input for the "First name" field on the "new user registration" page.' | ||
c.flag 'last_name', desc: 'Prefilled input for the "Last name" field on the "new user registration" page.' | ||
c.flag 'resend', desc: 'Resend the invitation email if the user has already been invited and the email was sent some time ago.' | ||
c.flag 'restricted', desc: 'Invite a guest that can use multiple channels' | ||
c.flag 'ultra_restricted', desc: 'Invite a guest that can use one channel only' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.users_admin_invite(options)) | ||
end | ||
end | ||
|
||
g.desc 'Disable a user' | ||
g.long_desc %( Disable a user ) | ||
g.command 'setInactive' do |c| | ||
c.flag 'user', desc: 'User to disable' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.users_admin_setInactive(options)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Web | ||
module Api | ||
module Endpoints | ||
module Migration | ||
# | ||
# For Enterprise Grid workspaces, map local user IDs to global user IDs | ||
# | ||
# @option options [Object] :users | ||
# A comma-separated list of user ids, up to 400 per request. | ||
# @option options [Object] :to_old | ||
# Specify true to convert W global user IDs to workspace-specific U IDs. Defaults to false. | ||
# @see https://api.slack.com/methods/migration.exchange | ||
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/migration/migration.exchange.json | ||
def migration_exchange(options = {}) | ||
throw ArgumentError.new('Required arguments :users missing') if options[:users].nil? | ||
post('migration.exchange', options) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.