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
-
#admin_apps_requests_cancel(options = {}) ⇒ Object
Cancel app request for team.
-
#admin_apps_requests_list(options = {}) ⇒ Object
List app requests for a team/workspace.
Instance Method Details
#admin_apps_requests_cancel(options = {}) ⇒ Object
Cancel app request for team
20 21 22 23 |
# File 'lib/slack/web/api/endpoints/admin_apps_requests.rb', line 20 def admin_apps_requests_cancel( = {}) raise ArgumentError, 'Required arguments :request_id missing' if [:request_id].nil? post('admin.apps.requests.cancel', ) end |
#admin_apps_requests_list(options = {}) ⇒ Object
List app requests for a team/workspace.
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( = {}) if block_given? Pagination::Cursor.new(self, :admin_apps_requests_list, ).each do |page| yield page end else post('admin.apps.requests.list', ) end end |