Class: ZoomUs::PAC
- Inherits:
-
Object
- Object
- ZoomUs::PAC
- Defined in:
- lib/zoom_us/pac.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ PAC
constructor
A new instance of PAC.
-
#user_pa_cs(user_id, opts = {}) ⇒ InlineResponse20049
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. -
#user_pa_cs_with_http_info(user_id, opts = {}) ⇒ Array<(InlineResponse20049, Fixnum, Hash)>
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.<br>Use this API to list a user's PAC accounts.<br><br> Scopes: `user:read:admin` `user:read`<br> <br> <br> Prerequisites:<br> * 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.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ PAC
Returns a new instance of PAC.
19 20 21 |
# File 'lib/zoom_us/pac.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/zoom_us/pac.rb', line 17 def api_client @api_client end |
Instance Method Details
#user_pa_cs(user_id, opts = {}) ⇒ InlineResponse20049
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.
27 28 29 30 |
# 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 = {}) ⇒ Array<(InlineResponse20049, Fixnum, Hash)>
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.<br>Use this API to list a user's PAC accounts.<br><br> Scopes: `user:read:admin` `user:read`<br> <br> <br> Prerequisites:<br> * 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.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# 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 |