This repository has been archived by the owner on Sep 18, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
590 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file was auto-generated by lib/generators/tasks/generate.rb | ||
|
||
module Slack | ||
module Endpoint | ||
module Apps | ||
# | ||
# Returns list of permissions this app has on a team. | ||
# | ||
# @see https://api.slack.com/methods/apps.permissions.info | ||
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/apps.permissions.info.md | ||
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/apps.permissions.info.json | ||
def apps_permissions_info(options={}) | ||
post("apps.permissions.info", options) | ||
end | ||
|
||
# | ||
# Allows an app to request additional scopes | ||
# | ||
# @option options [Object] :scopes | ||
# A comma separated list of scopes to request for | ||
# @option options [Object] :trigger_id | ||
# Token used to trigger the permissions API | ||
# @see https://api.slack.com/methods/apps.permissions.request | ||
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/apps.permissions.request.md | ||
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/apps.permissions.request.json | ||
def apps_permissions_request(options={}) | ||
throw ArgumentError.new("Required arguments :scopes missing") if options[:scopes].nil? | ||
throw ArgumentError.new("Required arguments :trigger_id missing") if options[:trigger_id].nil? | ||
post("apps.permissions.request", options) | ||
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
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.