purecloud 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/config-ruby.json +1 -1
- data/extensions/auth.rb +7 -0
- data/lib/purecloud.rb +137 -85
- data/lib/purecloud/api/analytics_api.rb +1906 -0
- data/lib/purecloud/api/architect_api.rb +51 -51
- data/lib/purecloud/api/attributes_api.rb +6 -6
- data/lib/purecloud/api/authorization_api.rb +17 -79
- data/lib/purecloud/api/callbacks_api.rb +483 -0
- data/lib/purecloud/api/calls_api.rb +1088 -0
- data/lib/purecloud/api/chats_api.rb +483 -0
- data/lib/purecloud/api/compliance_api.rb +2 -2
- data/lib/purecloud/api/configuration_api.rb +83 -83
- data/lib/purecloud/api/content_management_api.rb +36 -36
- data/lib/purecloud/api/conversations_api.rb +3542 -465
- data/lib/purecloud/api/downloads_api.rb +2 -2
- data/lib/purecloud/api/emails_api.rb +1013 -0
- data/lib/purecloud/api/evaluations_api.rb +73 -0
- data/lib/purecloud/api/external_contacts_api.rb +26 -26
- data/lib/purecloud/api/fax_api.rb +6 -6
- data/lib/purecloud/api/faxes_api.rb +73 -0
- data/lib/purecloud/api/geolocation_api.rb +4 -4
- data/lib/purecloud/api/greetings_api.rb +12 -12
- data/lib/purecloud/api/groups_api.rb +3 -3
- data/lib/purecloud/api/integrations_api.rb +144 -0
- data/lib/purecloud/api/languages_api.rb +2 -2
- data/lib/purecloud/api/licensing_api.rb +7 -7
- data/lib/purecloud/api/locations_api.rb +2 -2
- data/lib/purecloud/api/notifications_api.rb +7 -7
- data/lib/purecloud/api/o_auth_api.rb +22 -22
- data/lib/purecloud/api/outbound_api.rb +69 -81
- data/lib/purecloud/api/presence_api.rb +10 -10
- data/lib/purecloud/api/quality_api.rb +41 -93
- data/lib/purecloud/api/recording_api.rb +20 -29
- data/lib/purecloud/api/response_management_api.rb +11 -11
- data/lib/purecloud/api/routing_api.rb +333 -189
- data/lib/purecloud/api/scripts_api.rb +11 -11
- data/lib/purecloud/api/search_api.rb +1 -1
- data/lib/purecloud/api/socials_api.rb +483 -0
- data/lib/purecloud/api/stations_api.rb +3 -3
- data/lib/purecloud/api/telephony_providers_edge_api.rb +38 -38
- data/lib/purecloud/api/tokens_api.rb +1 -1
- data/lib/purecloud/api/user_recordings_api.rb +6 -6
- data/lib/purecloud/api/users_api.rb +403 -95
- data/lib/purecloud/api/utilities_api.rb +4 -60
- data/lib/purecloud/api/videos_api.rb +483 -0
- data/lib/purecloud/api/voicemail_api.rb +11 -11
- data/lib/purecloud/models/address.rb +47 -25
- data/lib/purecloud/models/address_listing.rb +11 -11
- data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/aggregate_data_container.rb +161 -0
- data/lib/purecloud/models/aggregate_metric_data.rb +175 -0
- data/lib/purecloud/models/{session_request.rb → aggregate_query_response.rb} +10 -8
- data/lib/purecloud/models/{domain_license_entity_listing.rb → aggregation_query.rb} +49 -79
- data/lib/purecloud/models/{tag.rb → aggregation_range.rb} +16 -16
- data/lib/purecloud/models/aggregation_result.rb +199 -0
- data/lib/purecloud/models/aggregation_result_entry.rb +179 -0
- data/lib/purecloud/models/alert_entity_listing.rb +11 -11
- data/lib/purecloud/models/analytics_conversation.rb +181 -0
- data/lib/purecloud/models/analytics_conversation_query_response.rb +160 -0
- data/lib/purecloud/models/{queue_member_entity_listing.rb → analytics_evaluation.rb} +62 -64
- data/lib/purecloud/models/analytics_participant.rb +158 -0
- data/lib/purecloud/models/analytics_property.rb +178 -0
- data/lib/purecloud/models/analytics_query_aggregation.rb +202 -0
- data/lib/purecloud/models/analytics_query_clause.rb +168 -0
- data/lib/purecloud/models/analytics_query_filter.rb +181 -0
- data/lib/purecloud/models/analytics_query_predicate.rb +269 -0
- data/lib/purecloud/models/analytics_segment.rb +607 -0
- data/lib/purecloud/models/{put_management_unit.rb → analytics_session.rb} +27 -25
- data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
- data/lib/purecloud/models/audit_entity_reference.rb +1 -1
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/available_additional_service_listing.rb +11 -11
- data/lib/purecloud/models/available_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
- data/lib/purecloud/models/call.rb +2 -22
- data/lib/purecloud/models/call_conversation.rb +213 -0
- data/lib/purecloud/models/call_participant.rb +527 -0
- data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/callback_conversation.rb +194 -0
- data/lib/purecloud/models/callback_participant.rb +456 -0
- data/lib/purecloud/models/campaign.rb +17 -219
- data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
- data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
- data/lib/purecloud/models/carrier_entity_listing.rb +11 -11
- data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
- data/lib/purecloud/models/channel_entity_listing.rb +11 -11
- data/lib/purecloud/models/channel_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/{domain_license.rb → chat_conversation.rb} +19 -25
- data/lib/purecloud/models/chat_participant.rb +270 -12
- data/lib/purecloud/models/chat_search_listing.rb +11 -11
- data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
- data/lib/purecloud/models/consumed_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/consuming_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/contact.rb +41 -73
- data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/contact_listing.rb +11 -11
- data/lib/purecloud/models/contact_sales.rb +1 -21
- data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/{evaluation_query_request.rb → conversation_query.rb} +77 -90
- data/lib/purecloud/models/conversation_query_response.rb +11 -11
- data/lib/purecloud/models/{session_entity_listing.rb → create_call_request.rb} +71 -68
- data/lib/purecloud/models/{conversation_response.rb → create_call_response.rb} +1 -1
- data/lib/purecloud/models/create_user.rb +219 -0
- data/lib/purecloud/models/data_item.rb +19 -23
- data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_object_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/destination.rb +1 -21
- data/lib/purecloud/models/did_entity_listing.rb +11 -11
- data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_billing_period_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
- data/lib/purecloud/models/domain_invoice_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_organization_role.rb +1 -23
- data/lib/purecloud/models/domain_permission.rb +1 -13
- data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
- data/lib/purecloud/models/email_conversation.rb +194 -0
- data/lib/purecloud/models/email_message_listing.rb +11 -11
- data/lib/purecloud/models/email_participant.rb +424 -0
- data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
- data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
- data/lib/purecloud/models/entity.rb +10 -20
- data/lib/purecloud/models/evaluation.rb +1 -0
- data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/external_organization_listing.rb +11 -11
- data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
- data/lib/purecloud/models/filter.rb +14 -11
- data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_version_entity_listing.rb +11 -11
- data/lib/purecloud/models/group_entity_listing.rb +11 -11
- data/lib/purecloud/models/hardware_rate_listing.rb +11 -11
- data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/integration_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/ivr_entity_listing.rb +11 -11
- data/lib/purecloud/models/language_entity_listing.rb +11 -11
- data/lib/purecloud/models/library_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_entity_listing.rb +11 -11
- data/lib/purecloud/models/linked_entity_listing_flow_details.rb +11 -11
- data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +11 -11
- data/lib/purecloud/models/location_entity_listing.rb +11 -11
- data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/management_unit.rb +26 -14
- data/lib/purecloud/models/media_result.rb +1 -11
- data/lib/purecloud/models/media_summary.rb +2 -2
- data/lib/purecloud/models/media_summary_detail.rb +156 -0
- data/lib/purecloud/models/note_listing.rb +11 -11
- data/lib/purecloud/models/numeric_range.rb +180 -0
- data/lib/purecloud/models/o_auth_client.rb +21 -14
- data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
- data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
- data/lib/purecloud/models/observation_data_container.rb +161 -0
- data/lib/purecloud/models/observation_query.rb +160 -0
- data/lib/purecloud/models/observation_query_response.rb +148 -0
- data/lib/purecloud/models/okta.rb +11 -11
- data/lib/purecloud/models/one_login.rb +11 -11
- data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
- data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
- data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/paging_spec.rb +158 -0
- data/lib/purecloud/models/participant.rb +1 -13
- data/lib/purecloud/models/payment_method_listing.rb +11 -11
- data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/policy_entity_listing.rb +11 -11
- data/lib/purecloud/models/presence_query_response.rb +161 -0
- data/lib/purecloud/models/prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/property_index_request.rb +182 -0
- data/lib/purecloud/models/quality_audit_page.rb +11 -11
- data/lib/purecloud/models/queue.rb +1 -23
- data/lib/purecloud/models/queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/queues_entity_listing.rb +11 -11
- data/lib/purecloud/models/quote.rb +1 -37
- data/lib/purecloud/models/quote_listing.rb +11 -11
- data/lib/purecloud/models/recording.rb +13 -34
- data/lib/purecloud/models/relationship_listing.rb +11 -11
- data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
- data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/response.rb +14 -84
- data/lib/purecloud/models/response_entity_list.rb +11 -11
- data/lib/purecloud/models/response_entity_listing.rb +11 -11
- data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/{user_status.rb → routing_skill.rb} +35 -25
- data/lib/purecloud/models/rule_entity_listing.rb +11 -11
- data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/salesforce.rb +11 -11
- data/lib/purecloud/models/schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
- data/lib/purecloud/models/script_entity_listing.rb +11 -11
- data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
- data/lib/purecloud/models/service_entity_listing.rb +11 -11
- data/lib/purecloud/models/share_entity_listing.rb +11 -11
- data/lib/purecloud/models/site_entity_listing.rb +11 -11
- data/lib/purecloud/models/skill_entity_listing.rb +12 -12
- data/lib/purecloud/models/social_conversation.rb +194 -0
- data/lib/purecloud/models/social_participant.rb +446 -0
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/station_entity_listing.rb +11 -11
- data/lib/purecloud/models/statistical_response.rb +158 -0
- data/lib/purecloud/models/statistical_summary.rb +226 -0
- data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/system_prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
- data/lib/purecloud/models/template_entity_listing.rb +11 -11
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/time_zone.rb +1 -11
- data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
- data/lib/purecloud/models/transfer_request.rb +193 -0
- data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
- data/lib/purecloud/models/user.rb +96 -129
- data/lib/purecloud/models/user_action_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_authorization.rb +1 -13
- data/lib/purecloud/models/user_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_presence_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_queue.rb +1 -23
- data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
- data/lib/purecloud/models/{session.rb → user_routing_skill.rb} +26 -41
- data/lib/purecloud/models/user_skill_entity_listing.rb +12 -12
- data/lib/purecloud/models/user_station.rb +178 -0
- data/lib/purecloud/models/user_stations.rb +180 -0
- data/lib/purecloud/models/users_entity_listing.rb +11 -11
- data/lib/purecloud/models/utilization.rb +4 -36
- data/lib/purecloud/models/video_conversation.rb +194 -0
- data/lib/purecloud/models/video_participant.rb +463 -0
- data/lib/purecloud/models/voice_rate_international_entity_listing.rb +11 -11
- data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +11 -11
- data/lib/purecloud/models/voicemail_message_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +60 -15
- data/lib/purecloud/models/skill.rb +0 -269
- data/lib/purecloud/models/user_skill.rb +0 -290
|
@@ -29,7 +29,7 @@ module PureCloud
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# resource path
|
|
32
|
-
path = "/api/
|
|
32
|
+
path = "/api/v2/certificate/details".sub('{format}','json')
|
|
33
33
|
|
|
34
34
|
# query parameters
|
|
35
35
|
query_params = {}
|
|
@@ -87,7 +87,7 @@ module PureCloud
|
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# resource path
|
|
90
|
-
path = "/api/
|
|
90
|
+
path = "/api/v2/configuration/addressvalidation".sub('{format}','json')
|
|
91
91
|
|
|
92
92
|
# query parameters
|
|
93
93
|
query_params = {}
|
|
@@ -143,7 +143,7 @@ module PureCloud
|
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
# resource path
|
|
146
|
-
path = "/api/
|
|
146
|
+
path = "/api/v2/date".sub('{format}','json')
|
|
147
147
|
|
|
148
148
|
# query parameters
|
|
149
149
|
query_params = {}
|
|
@@ -180,62 +180,6 @@ module PureCloud
|
|
|
180
180
|
return data, status_code, headers
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
# Get health.
|
|
184
|
-
#
|
|
185
|
-
# @param [Hash] opts the optional parameters
|
|
186
|
-
# @return [HealthCheckInfo]
|
|
187
|
-
def get_check(opts = {})
|
|
188
|
-
data, status_code, headers = get_check_with_http_info(opts)
|
|
189
|
-
return data
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# Get health.
|
|
193
|
-
#
|
|
194
|
-
# @param [Hash] opts the optional parameters
|
|
195
|
-
# @return [Array<(HealthCheckInfo, Fixnum, Hash)>] HealthCheckInfo data, response status code and response headers
|
|
196
|
-
def get_check_with_http_info(opts = {})
|
|
197
|
-
if @api_client.config.debugging
|
|
198
|
-
@api_client.config.logger.debug "Calling API: UtilitiesApi#get_check ..."
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
# resource path
|
|
202
|
-
path = "/api/v1/health/check".sub('{format}','json')
|
|
203
|
-
|
|
204
|
-
# query parameters
|
|
205
|
-
query_params = {}
|
|
206
|
-
|
|
207
|
-
# header parameters
|
|
208
|
-
header_params = {}
|
|
209
|
-
|
|
210
|
-
# HTTP header 'Accept' (if needed)
|
|
211
|
-
_header_accept = ['application/json']
|
|
212
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
213
|
-
|
|
214
|
-
# HTTP header 'Content-Type'
|
|
215
|
-
_header_content_type = ['application/json']
|
|
216
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
217
|
-
|
|
218
|
-
# form parameters
|
|
219
|
-
form_params = {}
|
|
220
|
-
|
|
221
|
-
# http body (model)
|
|
222
|
-
post_body = nil
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
auth_names = ['PureCloud Auth']
|
|
226
|
-
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
227
|
-
:header_params => header_params,
|
|
228
|
-
:query_params => query_params,
|
|
229
|
-
:form_params => form_params,
|
|
230
|
-
:body => post_body,
|
|
231
|
-
:auth_names => auth_names,
|
|
232
|
-
:return_type => 'HealthCheckInfo')
|
|
233
|
-
if @api_client.config.debugging
|
|
234
|
-
@api_client.config.logger.debug "API called: UtilitiesApi#get_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
235
|
-
end
|
|
236
|
-
return data, status_code, headers
|
|
237
|
-
end
|
|
238
|
-
|
|
239
183
|
# Get time zones list
|
|
240
184
|
#
|
|
241
185
|
# @param [Hash] opts the optional parameters
|
|
@@ -259,7 +203,7 @@ module PureCloud
|
|
|
259
203
|
end
|
|
260
204
|
|
|
261
205
|
# resource path
|
|
262
|
-
path = "/api/
|
|
206
|
+
path = "/api/v2/timezones".sub('{format}','json')
|
|
263
207
|
|
|
264
208
|
# query parameters
|
|
265
209
|
query_params = {}
|
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
require "uri"
|
|
2
|
+
|
|
3
|
+
module PureCloud
|
|
4
|
+
class VideosApi
|
|
5
|
+
attr_accessor :api_client
|
|
6
|
+
|
|
7
|
+
def initialize(api_client = ApiClient.default)
|
|
8
|
+
@api_client = api_client
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Get conversations
|
|
12
|
+
#
|
|
13
|
+
# @param conversation_id conversation ID
|
|
14
|
+
# @param participant_id participant ID
|
|
15
|
+
# @param [Hash] opts the optional parameters
|
|
16
|
+
# @return [ConversationEntityListing]
|
|
17
|
+
def get_videos(conversation_id, participant_id, opts = {})
|
|
18
|
+
data, status_code, headers = get_videos_with_http_info(conversation_id, participant_id, opts)
|
|
19
|
+
return data
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Get conversations
|
|
23
|
+
#
|
|
24
|
+
# @param conversation_id conversation ID
|
|
25
|
+
# @param participant_id participant ID
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [Array<(ConversationEntityListing, Fixnum, Hash)>] ConversationEntityListing data, response status code and response headers
|
|
28
|
+
def get_videos_with_http_info(conversation_id, participant_id, opts = {})
|
|
29
|
+
if @api_client.config.debugging
|
|
30
|
+
@api_client.config.logger.debug "Calling API: VideosApi#get_videos ..."
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# verify the required parameter 'conversation_id' is set
|
|
34
|
+
fail "Missing the required parameter 'conversation_id' when calling get_videos" if conversation_id.nil?
|
|
35
|
+
|
|
36
|
+
# verify the required parameter 'participant_id' is set
|
|
37
|
+
fail "Missing the required parameter 'participant_id' when calling get_videos" if participant_id.nil?
|
|
38
|
+
|
|
39
|
+
# resource path
|
|
40
|
+
path = "/api/v2/videos".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
41
|
+
|
|
42
|
+
# query parameters
|
|
43
|
+
query_params = {}
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = {}
|
|
47
|
+
|
|
48
|
+
# HTTP header 'Accept' (if needed)
|
|
49
|
+
_header_accept = ['application/json']
|
|
50
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
51
|
+
|
|
52
|
+
# HTTP header 'Content-Type'
|
|
53
|
+
_header_content_type = ['application/json']
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = nil
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
auth_names = ['PureCloud Auth']
|
|
64
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => 'ConversationEntityListing')
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: VideosApi#get_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Update conversation participant
|
|
78
|
+
#
|
|
79
|
+
# @param conversation_id conversation ID
|
|
80
|
+
# @param participant_id participant ID
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @option opts [ParticipantRequest] :body
|
|
83
|
+
# @return [nil]
|
|
84
|
+
def patch_participants_participant_id(conversation_id, participant_id, opts = {})
|
|
85
|
+
patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts)
|
|
86
|
+
return nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Update conversation participant
|
|
90
|
+
#
|
|
91
|
+
# @param conversation_id conversation ID
|
|
92
|
+
# @param participant_id participant ID
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [ParticipantRequest] :body
|
|
95
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
96
|
+
def patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {})
|
|
97
|
+
if @api_client.config.debugging
|
|
98
|
+
@api_client.config.logger.debug "Calling API: VideosApi#patch_participants_participant_id ..."
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# verify the required parameter 'conversation_id' is set
|
|
102
|
+
fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id" if conversation_id.nil?
|
|
103
|
+
|
|
104
|
+
# verify the required parameter 'participant_id' is set
|
|
105
|
+
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id" if participant_id.nil?
|
|
106
|
+
|
|
107
|
+
# resource path
|
|
108
|
+
path = "/api/v2/videos/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = {}
|
|
115
|
+
|
|
116
|
+
# HTTP header 'Accept' (if needed)
|
|
117
|
+
_header_accept = ['application/json']
|
|
118
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
119
|
+
|
|
120
|
+
# HTTP header 'Content-Type'
|
|
121
|
+
_header_content_type = ['application/json']
|
|
122
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
auth_names = ['PureCloud Auth']
|
|
132
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
133
|
+
:header_params => header_params,
|
|
134
|
+
:query_params => query_params,
|
|
135
|
+
:form_params => form_params,
|
|
136
|
+
:body => post_body,
|
|
137
|
+
:auth_names => auth_names)
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: VideosApi#patch_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Update the attributes on a conversation participant.
|
|
145
|
+
#
|
|
146
|
+
# @param conversation_id conversation ID
|
|
147
|
+
# @param participant_id participant ID
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @option opts [ParticipantAttributes] :body
|
|
150
|
+
# @return [nil]
|
|
151
|
+
def patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {})
|
|
152
|
+
patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts)
|
|
153
|
+
return nil
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Update the attributes on a conversation participant.
|
|
157
|
+
#
|
|
158
|
+
# @param conversation_id conversation ID
|
|
159
|
+
# @param participant_id participant ID
|
|
160
|
+
# @param [Hash] opts the optional parameters
|
|
161
|
+
# @option opts [ParticipantAttributes] :body
|
|
162
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
163
|
+
def patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {})
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug "Calling API: VideosApi#patch_participants_participant_id_attributes ..."
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# verify the required parameter 'conversation_id' is set
|
|
169
|
+
fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id_attributes" if conversation_id.nil?
|
|
170
|
+
|
|
171
|
+
# verify the required parameter 'participant_id' is set
|
|
172
|
+
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_attributes" if participant_id.nil?
|
|
173
|
+
|
|
174
|
+
# resource path
|
|
175
|
+
path = "/api/v2/videos/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
176
|
+
|
|
177
|
+
# query parameters
|
|
178
|
+
query_params = {}
|
|
179
|
+
|
|
180
|
+
# header parameters
|
|
181
|
+
header_params = {}
|
|
182
|
+
|
|
183
|
+
# HTTP header 'Accept' (if needed)
|
|
184
|
+
_header_accept = ['application/json']
|
|
185
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
186
|
+
|
|
187
|
+
# HTTP header 'Content-Type'
|
|
188
|
+
_header_content_type = ['application/json']
|
|
189
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
190
|
+
|
|
191
|
+
# form parameters
|
|
192
|
+
form_params = {}
|
|
193
|
+
|
|
194
|
+
# http body (model)
|
|
195
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
auth_names = ['PureCloud Auth']
|
|
199
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
200
|
+
:header_params => header_params,
|
|
201
|
+
:query_params => query_params,
|
|
202
|
+
:form_params => form_params,
|
|
203
|
+
:body => post_body,
|
|
204
|
+
:auth_names => auth_names)
|
|
205
|
+
if @api_client.config.debugging
|
|
206
|
+
@api_client.config.logger.debug "API called: VideosApi#patch_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
207
|
+
end
|
|
208
|
+
return data, status_code, headers
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Replace this participant with the specified user and/or address
|
|
212
|
+
#
|
|
213
|
+
# @param conversation_id conversation ID
|
|
214
|
+
# @param participant_id participant ID
|
|
215
|
+
# @param [Hash] opts the optional parameters
|
|
216
|
+
# @option opts [TransferRequest] :body
|
|
217
|
+
# @return [nil]
|
|
218
|
+
def post_participants_participant_id_replace(conversation_id, participant_id, opts = {})
|
|
219
|
+
post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts)
|
|
220
|
+
return nil
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Replace this participant with the specified user and/or address
|
|
224
|
+
#
|
|
225
|
+
# @param conversation_id conversation ID
|
|
226
|
+
# @param participant_id participant ID
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @option opts [TransferRequest] :body
|
|
229
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
230
|
+
def post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {})
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug "Calling API: VideosApi#post_participants_participant_id_replace ..."
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# verify the required parameter 'conversation_id' is set
|
|
236
|
+
fail "Missing the required parameter 'conversation_id' when calling post_participants_participant_id_replace" if conversation_id.nil?
|
|
237
|
+
|
|
238
|
+
# verify the required parameter 'participant_id' is set
|
|
239
|
+
fail "Missing the required parameter 'participant_id' when calling post_participants_participant_id_replace" if participant_id.nil?
|
|
240
|
+
|
|
241
|
+
# resource path
|
|
242
|
+
path = "/api/v2/videos/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
243
|
+
|
|
244
|
+
# query parameters
|
|
245
|
+
query_params = {}
|
|
246
|
+
|
|
247
|
+
# header parameters
|
|
248
|
+
header_params = {}
|
|
249
|
+
|
|
250
|
+
# HTTP header 'Accept' (if needed)
|
|
251
|
+
_header_accept = ['application/json']
|
|
252
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
253
|
+
|
|
254
|
+
# HTTP header 'Content-Type'
|
|
255
|
+
_header_content_type = ['application/json']
|
|
256
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
257
|
+
|
|
258
|
+
# form parameters
|
|
259
|
+
form_params = {}
|
|
260
|
+
|
|
261
|
+
# http body (model)
|
|
262
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
auth_names = ['PureCloud Auth']
|
|
266
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
267
|
+
:header_params => header_params,
|
|
268
|
+
:query_params => query_params,
|
|
269
|
+
:form_params => form_params,
|
|
270
|
+
:body => post_body,
|
|
271
|
+
:auth_names => auth_names)
|
|
272
|
+
if @api_client.config.debugging
|
|
273
|
+
@api_client.config.logger.debug "API called: VideosApi#post_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
274
|
+
end
|
|
275
|
+
return data, status_code, headers
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Get the wrap-up for this conversation participant.
|
|
279
|
+
#
|
|
280
|
+
# @param conversation_id conversation ID
|
|
281
|
+
# @param participant_id participant ID
|
|
282
|
+
# @param [Hash] opts the optional parameters
|
|
283
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
284
|
+
# @return [WrapupCode]
|
|
285
|
+
def get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {})
|
|
286
|
+
data, status_code, headers = get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts)
|
|
287
|
+
return data
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Get the wrap-up for this conversation participant.
|
|
291
|
+
#
|
|
292
|
+
# @param conversation_id conversation ID
|
|
293
|
+
# @param participant_id participant ID
|
|
294
|
+
# @param [Hash] opts the optional parameters
|
|
295
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
296
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
297
|
+
def get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {})
|
|
298
|
+
if @api_client.config.debugging
|
|
299
|
+
@api_client.config.logger.debug "Calling API: VideosApi#get_participants_participant_id_wrapup ..."
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# verify the required parameter 'conversation_id' is set
|
|
303
|
+
fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapup" if conversation_id.nil?
|
|
304
|
+
|
|
305
|
+
# verify the required parameter 'participant_id' is set
|
|
306
|
+
fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapup" if participant_id.nil?
|
|
307
|
+
|
|
308
|
+
# resource path
|
|
309
|
+
path = "/api/v2/videos/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
310
|
+
|
|
311
|
+
# query parameters
|
|
312
|
+
query_params = {}
|
|
313
|
+
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
314
|
+
|
|
315
|
+
# header parameters
|
|
316
|
+
header_params = {}
|
|
317
|
+
|
|
318
|
+
# HTTP header 'Accept' (if needed)
|
|
319
|
+
_header_accept = ['application/json']
|
|
320
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
321
|
+
|
|
322
|
+
# HTTP header 'Content-Type'
|
|
323
|
+
_header_content_type = ['application/json']
|
|
324
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
325
|
+
|
|
326
|
+
# form parameters
|
|
327
|
+
form_params = {}
|
|
328
|
+
|
|
329
|
+
# http body (model)
|
|
330
|
+
post_body = nil
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
auth_names = ['PureCloud Auth']
|
|
334
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
335
|
+
:header_params => header_params,
|
|
336
|
+
:query_params => query_params,
|
|
337
|
+
:form_params => form_params,
|
|
338
|
+
:body => post_body,
|
|
339
|
+
:auth_names => auth_names,
|
|
340
|
+
:return_type => 'WrapupCode')
|
|
341
|
+
if @api_client.config.debugging
|
|
342
|
+
@api_client.config.logger.debug "API called: VideosApi#get_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
343
|
+
end
|
|
344
|
+
return data, status_code, headers
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Get list of wrapup codes for this conversation participant
|
|
348
|
+
#
|
|
349
|
+
# @param conversation_id conversation ID
|
|
350
|
+
# @param participant_id participant ID
|
|
351
|
+
# @param [Hash] opts the optional parameters
|
|
352
|
+
# @return [WrapupCode]
|
|
353
|
+
def get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {})
|
|
354
|
+
data, status_code, headers = get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts)
|
|
355
|
+
return data
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Get list of wrapup codes for this conversation participant
|
|
359
|
+
#
|
|
360
|
+
# @param conversation_id conversation ID
|
|
361
|
+
# @param participant_id participant ID
|
|
362
|
+
# @param [Hash] opts the optional parameters
|
|
363
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
364
|
+
def get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {})
|
|
365
|
+
if @api_client.config.debugging
|
|
366
|
+
@api_client.config.logger.debug "Calling API: VideosApi#get_participants_participant_id_wrapupcodes ..."
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# verify the required parameter 'conversation_id' is set
|
|
370
|
+
fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapupcodes" if conversation_id.nil?
|
|
371
|
+
|
|
372
|
+
# verify the required parameter 'participant_id' is set
|
|
373
|
+
fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
374
|
+
|
|
375
|
+
# resource path
|
|
376
|
+
path = "/api/v2/videos/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
377
|
+
|
|
378
|
+
# query parameters
|
|
379
|
+
query_params = {}
|
|
380
|
+
|
|
381
|
+
# header parameters
|
|
382
|
+
header_params = {}
|
|
383
|
+
|
|
384
|
+
# HTTP header 'Accept' (if needed)
|
|
385
|
+
_header_accept = ['application/json']
|
|
386
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
387
|
+
|
|
388
|
+
# HTTP header 'Content-Type'
|
|
389
|
+
_header_content_type = ['application/json']
|
|
390
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
391
|
+
|
|
392
|
+
# form parameters
|
|
393
|
+
form_params = {}
|
|
394
|
+
|
|
395
|
+
# http body (model)
|
|
396
|
+
post_body = nil
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
auth_names = ['PureCloud Auth']
|
|
400
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
401
|
+
:header_params => header_params,
|
|
402
|
+
:query_params => query_params,
|
|
403
|
+
:form_params => form_params,
|
|
404
|
+
:body => post_body,
|
|
405
|
+
:auth_names => auth_names,
|
|
406
|
+
:return_type => 'WrapupCode')
|
|
407
|
+
if @api_client.config.debugging
|
|
408
|
+
@api_client.config.logger.debug "API called: VideosApi#get_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
409
|
+
end
|
|
410
|
+
return data, status_code, headers
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Get video conversation
|
|
414
|
+
#
|
|
415
|
+
# @param conversation_id conversation ID
|
|
416
|
+
# @param participant_id participant ID
|
|
417
|
+
# @param [Hash] opts the optional parameters
|
|
418
|
+
# @return [VideoConversation]
|
|
419
|
+
def get_conversation_id(conversation_id, participant_id, opts = {})
|
|
420
|
+
data, status_code, headers = get_conversation_id_with_http_info(conversation_id, participant_id, opts)
|
|
421
|
+
return data
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Get video conversation
|
|
425
|
+
#
|
|
426
|
+
# @param conversation_id conversation ID
|
|
427
|
+
# @param participant_id participant ID
|
|
428
|
+
# @param [Hash] opts the optional parameters
|
|
429
|
+
# @return [Array<(VideoConversation, Fixnum, Hash)>] VideoConversation data, response status code and response headers
|
|
430
|
+
def get_conversation_id_with_http_info(conversation_id, participant_id, opts = {})
|
|
431
|
+
if @api_client.config.debugging
|
|
432
|
+
@api_client.config.logger.debug "Calling API: VideosApi#get_conversation_id ..."
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# verify the required parameter 'conversation_id' is set
|
|
436
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id" if conversation_id.nil?
|
|
437
|
+
|
|
438
|
+
# verify the required parameter 'participant_id' is set
|
|
439
|
+
fail "Missing the required parameter 'participant_id' when calling get_conversation_id" if participant_id.nil?
|
|
440
|
+
|
|
441
|
+
# resource path
|
|
442
|
+
path = "/api/v2/videos/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
443
|
+
|
|
444
|
+
# query parameters
|
|
445
|
+
query_params = {}
|
|
446
|
+
|
|
447
|
+
# header parameters
|
|
448
|
+
header_params = {}
|
|
449
|
+
|
|
450
|
+
# HTTP header 'Accept' (if needed)
|
|
451
|
+
_header_accept = ['application/json']
|
|
452
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
453
|
+
|
|
454
|
+
# HTTP header 'Content-Type'
|
|
455
|
+
_header_content_type = ['application/json']
|
|
456
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
457
|
+
|
|
458
|
+
# form parameters
|
|
459
|
+
form_params = {}
|
|
460
|
+
|
|
461
|
+
# http body (model)
|
|
462
|
+
post_body = nil
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
auth_names = ['PureCloud Auth']
|
|
466
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
467
|
+
:header_params => header_params,
|
|
468
|
+
:query_params => query_params,
|
|
469
|
+
:form_params => form_params,
|
|
470
|
+
:body => post_body,
|
|
471
|
+
:auth_names => auth_names,
|
|
472
|
+
:return_type => 'VideoConversation')
|
|
473
|
+
if @api_client.config.debugging
|
|
474
|
+
@api_client.config.logger.debug "API called: VideosApi#get_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
475
|
+
end
|
|
476
|
+
return data, status_code, headers
|
|
477
|
+
end
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|