Module: Slack::Web::Api::Endpoints::AdminInviterequestsDenied

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

Instance Method Summary collapse

Instance Method Details

#admin_inviteRequests_denied_list(options = {}) ⇒ Object

List all denied workspace invite requests.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :cursor (string)

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

  • :limit (integer)

    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_denied.rb', line 20

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