Module: Slack::Web::Api::Endpoints::AdminInviterequestsApproved

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

Instance Method Summary collapse

Instance Method Details

#admin_inviteRequests_approved_list(options = {}) ⇒ Object

List all approved workspace invite requests.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :cursor (Object)

    Value of the next_cursor field sent as part of the previous API response.

  • :limit (Object)

    The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive.

  • :team_id (Object)

    ID for the workspace where the invite requests were made.

See Also:



20
21
22
23
24
25
26
27
28
# File 'lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb', line 20

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