class ZoomUs::PAC

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/zoom_us/pac.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

user_pa_cs(user_id, opts = {}) click to toggle source

List a User's PAC Accounts [Personal Audio Conference](support.zoom.us/hc/en-us/articles/204517069-Getting-Started-with-Personal-Audio-Conference) (PAC) allows Pro or higher account holders to host meetings through PSTN (phone dial-in) only.
Use this API to list a user's PAC accounts.
Scopes: `user:read:admin` `user:read`


Prerequisites:
* A Pro or higher plan with [Premium Audio Conferencing](support.zoom.us/hc/en-us/articles/204517069-Getting-Started-with-Personal-Audio-Conference) add-on. * Personal Audio Conference must be enabled in the user's profile. @param user_id The user ID or email address of the user. For user-level apps, pass `me` as the value for userId. @param [Hash] opts the optional parameters @return [InlineResponse20049]

# File lib/zoom_us/pac.rb, line 27
def user_pa_cs(user_id, opts = {})
  data, _status_code, _headers = user_pa_cs_with_http_info(user_id, opts)
  data
end
user_pa_cs_with_http_info(user_id, opts = {}) click to toggle source

List a User&#39;s PAC Accounts [Personal Audio Conference](support.zoom.us/hc/en-us/articles/204517069-Getting-Started-with-Personal-Audio-Conference) (PAC) allows Pro or higher account holders to host meetings through PSTN (phone dial-in) only.&lt;br&gt;Use this API to list a user&#39;s PAC accounts.&lt;br&gt;&lt;br&gt; Scopes: &#x60;user:read:admin&#x60; &#x60;user:read&#x60;&lt;br&gt; &lt;br&gt; &lt;br&gt; Prerequisites:&lt;br&gt; * A Pro or higher plan with [Premium Audio Conferencing](support.zoom.us/hc/en-us/articles/204517069-Getting-Started-with-Personal-Audio-Conference) add-on. * Personal Audio Conference must be enabled in the user&#39;s profile. @param user_id The user ID or email address of the user. For user-level apps, pass &#x60;me&#x60; as the value for userId. @param [Hash] opts the optional parameters @return [Array<(InlineResponse20049, Fixnum, Hash)>] InlineResponse20049 data, response status code and response headers

# File lib/zoom_us/pac.rb, line 37
def user_pa_cs_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PACApi.user_pa_cs ...'
  end
  # verify the required parameter 'user_id' is set
  if @api_client.config.client_side_validation && user_id.nil?
    fail ArgumentError, "Missing the required parameter 'user_id' when calling PACApi.user_pa_cs"
  end
  # resource path
  local_var_path = '/users/{userId}/pac'.sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20049')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PACApi#user_pa_cs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end