# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module AdminAppsRequests # # Cancel approval request for team # # @option options [string] :request_id # The id of the request to cancel. # @option options [Object] :enterprise_id # The ID of the enterprise where this request belongs. # @option options [Object] :team_id # The ID of the workspace where this request belongs. # @see https://api.slack.com/methods/admin.apps.requests.cancel # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.requests/admin.apps.requests.cancel.json def admin_apps_requests_cancel(options = {}) throw ArgumentError.new('Required arguments :request_id missing') if options[:request_id].nil? post('admin.apps.requests.cancel', options) end # # List app requests for a team/workspace. # # @option options [string] :cursor # Set cursor to next_cursor returned by the previous call to list items in the next page. # @option options [Object] :enterprise_id # . # @option options [integer] :limit # The maximum number of items to return. Must be between 1 - 1000 both inclusive. # @option options [Object] :team_id # . # @see https://api.slack.com/methods/admin.apps.requests.list # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.requests/admin.apps.requests.list.json 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 end end end end end