Class: PureCloud::VideosApi
- Inherits:
-
Object
- Object
- PureCloud::VideosApi
- Defined in:
- lib/purecloud/api/videos_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_conversation_id(conversation_id, participant_id, opts = {}) ⇒ VideoConversation
Get video conversation.
-
#get_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(VideoConversation, Fixnum, Hash)>
Get video conversation.
-
#get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get the wrap-up for this conversation participant.
-
#get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get the wrap-up for this conversation participant.
-
#get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get list of wrapup codes for this conversation participant.
-
#get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get list of wrapup codes for this conversation participant.
-
#get_videos(conversation_id, participant_id, opts = {}) ⇒ VideoConversationEntityListing
Get conversations.
-
#get_videos_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(VideoConversationEntityListing, Fixnum, Hash)>
Get conversations.
-
#initialize(api_client = ApiClient.default) ⇒ VideosApi
constructor
A new instance of VideosApi.
-
#patch_participants_participant_id(conversation_id, participant_id, opts = {}) ⇒ nil
Update conversation participant.
-
#patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {}) ⇒ nil
Update the attributes on a conversation participant.
-
#patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update the attributes on a conversation participant.
-
#patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update conversation participant.
-
#post_participants_participant_id_replace(conversation_id, participant_id, opts = {}) ⇒ nil
Replace this participant with the specified user and/or address.
-
#post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Replace this participant with the specified user and/or address.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ VideosApi
Returns a new instance of VideosApi.
7 8 9 |
# File 'lib/purecloud/api/videos_api.rb', line 7 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
5 6 7 |
# File 'lib/purecloud/api/videos_api.rb', line 5 def api_client @api_client end |
Instance Method Details
#get_conversation_id(conversation_id, participant_id, opts = {}) ⇒ VideoConversation
Get video conversation
419 420 421 422 |
# File 'lib/purecloud/api/videos_api.rb', line 419 def get_conversation_id(conversation_id, participant_id, opts = {}) data, status_code, headers = get_conversation_id_with_http_info(conversation_id, participant_id, opts) return data end |
#get_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(VideoConversation, Fixnum, Hash)>
Get video conversation
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'lib/purecloud/api/videos_api.rb', line 430 def get_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#get_conversation_id ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_conversation_id" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_conversation_id" if participant_id.nil? # resource path path = "/api/v2/videos/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'VideoConversation') if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#get_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get the wrap-up for this conversation participant.
285 286 287 288 |
# File 'lib/purecloud/api/videos_api.rb', line 285 def get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {}) data, status_code, headers = get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts) return data end |
#get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get the wrap-up for this conversation participant.
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/purecloud/api/videos_api.rb', line 297 def get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#get_participants_participant_id_wrapup ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapup" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapup" if participant_id.nil? # resource path path = "/api/v2/videos/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#get_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get list of wrapup codes for this conversation participant
353 354 355 356 |
# File 'lib/purecloud/api/videos_api.rb', line 353 def get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {}) data, status_code, headers = get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts) return data end |
#get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get list of wrapup codes for this conversation participant
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/purecloud/api/videos_api.rb', line 364 def get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#get_participants_participant_id_wrapupcodes ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapupcodes" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapupcodes" if participant_id.nil? # resource path path = "/api/v2/videos/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#get_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_videos(conversation_id, participant_id, opts = {}) ⇒ VideoConversationEntityListing
Get conversations
17 18 19 20 |
# File 'lib/purecloud/api/videos_api.rb', line 17 def get_videos(conversation_id, participant_id, opts = {}) data, status_code, headers = get_videos_with_http_info(conversation_id, participant_id, opts) return data end |
#get_videos_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(VideoConversationEntityListing, Fixnum, Hash)>
Get conversations
28 29 30 31 32 33 34 35 36 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/purecloud/api/videos_api.rb', line 28 def get_videos_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#get_videos ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_videos" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_videos" if participant_id.nil? # resource path path = "/api/v2/videos".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'VideoConversationEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#get_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_participants_participant_id(conversation_id, participant_id, opts = {}) ⇒ nil
Update conversation participant
84 85 86 87 |
# File 'lib/purecloud/api/videos_api.rb', line 84 def patch_participants_participant_id(conversation_id, participant_id, opts = {}) patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts) return nil end |
#patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {}) ⇒ nil
Update the attributes on a conversation participant.
151 152 153 154 |
# File 'lib/purecloud/api/videos_api.rb', line 151 def patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {}) patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts) return nil end |
#patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update the attributes on a conversation participant.
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/purecloud/api/videos_api.rb', line 163 def patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#patch_participants_participant_id_attributes ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id_attributes" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_attributes" if participant_id.nil? # resource path path = "/api/v2/videos/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#patch_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update conversation participant
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/purecloud/api/videos_api.rb', line 96 def patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#patch_participants_participant_id ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id" if participant_id.nil? # resource path path = "/api/v2/videos/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#patch_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_participants_participant_id_replace(conversation_id, participant_id, opts = {}) ⇒ nil
Replace this participant with the specified user and/or address
218 219 220 221 |
# File 'lib/purecloud/api/videos_api.rb', line 218 def post_participants_participant_id_replace(conversation_id, participant_id, opts = {}) post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts) return nil end |
#post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Replace this participant with the specified user and/or address
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/purecloud/api/videos_api.rb', line 230 def post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VideosApi#post_participants_participant_id_replace ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_participants_participant_id_replace" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_participants_participant_id_replace" if participant_id.nil? # resource path path = "/api/v2/videos/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VideosApi#post_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |