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

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 apps_permissions_info(options = {})
  post('apps.permissions.info', options)
end

#apps_permissions_request(options = {}) ⇒ Object

Allows an app to request additional scopes

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :scopes (Object)

    A comma separated list of scopes to request for.

  • :trigger_id (Object)

    Token used to trigger the permissions API.

See Also:



26
27
28
29
30
# File 'lib/slack/web/api/endpoints/apps_permissions.rb', line 26

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