Module: Slack::Endpoint::Apps

Included in:
Slack::Endpoint
Defined in:
lib/slack/endpoint/apps.rb

Instance Method Summary collapse

Instance Method Details

#apps_permissions_info(options = {}) ⇒ Object

Returns list of permissions this app has on a team.



12
13
14
# File 'lib/slack/endpoint/apps.rb', line 12

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/endpoint/apps.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