Module: Slack::Web::Api::Endpoints::AdminAppsRestricted

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

Instance Method Summary collapse

Instance Method Details

#admin_apps_restricted_list(options = {}) ⇒ Object

List restricted apps for an org or workspace.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :certified (boolean)

    Limit the results to only include certified apps. When false, no certified apps will appear in the result.

  • :cursor (string)

    Set cursor to next_cursor returned by the previous call to list items in the next page.

  • :enterprise_id (Object)

    .

  • :limit (integer)

    The maximum number of items to return. Must be between 1 - 1000 both inclusive.

  • :team_id (Object)

    .

See Also:



24
25
26
27
28
29
30
31
32
# File 'lib/slack/web/api/endpoints/admin_apps_restricted.rb', line 24

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