-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Slack Web API with new methods (#298)
* update Web API * convert view option to JSON * add custom spec for views endpoint * update changelog * changes for rubocop
- Loading branch information
Showing
88 changed files
with
835 additions
and
473 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'AdminApps methods.' | ||
command 'admin_apps' do |g| | ||
g.desc 'Approve an app for installation on a workspace.' | ||
g.long_desc %( Approve an app for installation on a workspace. ) | ||
g.command 'approve' do |c| | ||
c.flag 'app_id', desc: 'The id of the app to approve.' | ||
c.flag 'request_id', desc: 'The id of the request to approve.' | ||
c.flag 'team_id', desc: '.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_apps_approve(options)) | ||
end | ||
end | ||
|
||
g.desc 'Restrict an app for installation on a workspace.' | ||
g.long_desc %( Restrict an app for installation on a workspace. ) | ||
g.command 'restrict' do |c| | ||
c.flag 'app_id', desc: 'The id of the app to restrict.' | ||
c.flag 'request_id', desc: 'The id of the request to restrict.' | ||
c.flag 'team_id', desc: '.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_apps_restrict(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'AdminAppsRequests methods.' | ||
command 'admin_apps_requests' do |g| | ||
g.desc 'List app requests for a team/workspace.' | ||
g.long_desc %( List app requests for a team/workspace. ) | ||
g.command 'list' do |c| | ||
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.' | ||
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.' | ||
c.flag 'team_id', desc: '.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_apps_requests_list(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
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
Oops, something went wrong.