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

This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.


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

This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.

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