Module: Slack::Web::Api::Endpoints::AdminInviterequests
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_inviteRequests.rb
Instance Method Summary collapse
-
#admin_inviteRequests_approve(options = {}) ⇒ Object
Approve a workspace invite request.
-
#admin_inviteRequests_deny(options = {}) ⇒ Object
Deny a workspace invite request.
-
#admin_inviteRequests_list(options = {}) ⇒ Object
List all pending workspace invite requests.
Instance Method Details
#admin_inviteRequests_approve(options = {}) ⇒ Object
Approve a workspace invite request.
18 19 20 21 |
# File 'lib/slack/web/api/endpoints/admin_inviteRequests.rb', line 18 def admin_inviteRequests_approve( = {}) raise ArgumentError, 'Required arguments :invite_request_id missing' if [:invite_request_id].nil? post('admin.inviteRequests.approve', ) end |
#admin_inviteRequests_deny(options = {}) ⇒ Object
Deny a workspace invite request.
32 33 34 35 |
# File 'lib/slack/web/api/endpoints/admin_inviteRequests.rb', line 32 def admin_inviteRequests_deny( = {}) raise ArgumentError, 'Required arguments :invite_request_id missing' if [:invite_request_id].nil? post('admin.inviteRequests.deny', ) end |
#admin_inviteRequests_list(options = {}) ⇒ Object
List all pending workspace invite requests.
48 49 50 51 52 53 54 55 56 |
# File 'lib/slack/web/api/endpoints/admin_inviteRequests.rb', line 48 def admin_inviteRequests_list( = {}) if block_given? Pagination::Cursor.new(self, :admin_inviteRequests_list, ).each do |page| yield page end else post('admin.inviteRequests.list', ) end end |