# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module AdminFunctions # # Look up functions by a set of apps # # @option options [array] :app_ids # Comma-separated array of app IDs to get functions for; max 50. # @option options [string] :cursor # Set cursor to next_cursor returned by the previous call to list items in the next page. # @option options [integer] :limit # The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive. # @option options [Object] :team_id # The team context to retrieve functions from. # @see https://api.slack.com/methods/admin.functions.list # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.functions/admin.functions.list.json def admin_functions_list(options = {}) raise ArgumentError, 'Required arguments :app_ids missing' if options[:app_ids].nil? if block_given? Pagination::Cursor.new(self, :admin_functions_list, options).each do |page| yield page end else post('admin.functions.list', options) end end end end end end end