Module: Slack::Web::Api::Endpoints::AdminAppsRequests

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

Instance Method Summary collapse

Instance Method Details

#admin_apps_requests_cancel(options = {}) ⇒ Object

Cancel app request for team

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :request_id (string)

    The id of the request to cancel.

  • :enterprise_id (Object)

    The ID of the enterprise where this request belongs.

  • :team_id (Object)

    The ID of the workspace where this request belongs.

Raises:

  • (ArgumentError)

See Also:



20
21
22
23
# File 'lib/slack/web/api/endpoints/admin_apps_requests.rb', line 20

def admin_apps_requests_cancel(options = {})
  raise ArgumentError, 'Required arguments :request_id missing' if options[:request_id].nil?
  post('admin.apps.requests.cancel', options)
end

#admin_apps_requests_list(options = {}) ⇒ Object

List app requests for a team/workspace.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :certified (boolean)

    Include requests for certified apps.

  • :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:



40
41
42
43
44
45
46
47
48
# File 'lib/slack/web/api/endpoints/admin_apps_requests.rb', line 40

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