Module: Slack::Web::Api::Endpoints::AppsPermissions
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/apps_permissions.rb
Instance Method Summary collapse
-
#apps_permissions_info(options = {}) ⇒ Object
Returns list of permissions this app has on a team.
-
#apps_permissions_request(options = {}) ⇒ Object
Allows an app to request additional scopes.
Instance Method Details
#apps_permissions_info(options = {}) ⇒ Object
Returns list of permissions this app has on a team.
13 14 15 |
# File 'lib/slack/web/api/endpoints/apps_permissions.rb', line 13 def ( = {}) post('apps.permissions.info', ) end |
#apps_permissions_request(options = {}) ⇒ Object
Allows an app to request additional scopes
26 27 28 29 30 |
# File 'lib/slack/web/api/endpoints/apps_permissions.rb', line 26 def ( = {}) throw ArgumentError.new('Required arguments :scopes missing') if [:scopes].nil? throw ArgumentError.new('Required arguments :trigger_id missing') if [:trigger_id].nil? post('apps.permissions.request', ) end |