Module: Slack::Web::Api::Endpoints::AppsPermissionsResources

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/apps_permissions_resources.rb

Instance Method Summary collapse

Instance Method Details

#apps_permissions_resources_list(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):

  • :cursor (Object)

    Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first “page” of the collection. See pagination for more detail.

  • :limit (Object)

    The maximum number of items to return.

See Also:


17
18
19
20
21
22
23
24
25
# File 'lib/slack/web/api/endpoints/apps_permissions_resources.rb', line 17

def apps_permissions_resources_list(options = {})
  if block_given?
    Pagination::Cursor.new(self, :apps_permissions_resources_list, options).each do |page|
      yield page
    end
  else
    post('apps.permissions.resources.list', options)
  end
end