Skip to content

Commit 64c5c84

Browse files
committed
update
1 parent c3aa4df commit 64c5c84

5 files changed

Lines changed: 28 additions & 20 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
44

55
- API version: 3.0.0
66
- Package version: 1.0.0
7-
- Build date: 2017-04-11T11:56:49.228+02:00
7+
- Build date: 2017-04-11T12:59:56.247+02:00
88
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -88,7 +88,7 @@ Class | Method | HTTP request | Description
8888
*CallsApi* | [**call_answer**](docs/CallsApi.md#call_answer) | **POST** /calls/{callId}/_answer | Set call as answered by agent
8989
*CallsApi* | [**call_create**](docs/CallsApi.md#call_create) | **POST** /calls/{callId} | Create new call
9090
*CallsApi* | [**call_get_status**](docs/CallsApi.md#call_get_status) | **GET** /calls/{callId}/status | Return the status of call
91-
*CallsApi* | [**call_move_channel**](docs/CallsApi.md#call_move_channel) | **POST** /calls/{callId}/channels | Moves existing channel to this call
91+
*CallsApi* | [**call_move_channel**](docs/CallsApi.md#call_move_channel) | **POST** /calls/{callId}/channels/{channelId}/_move | Moves existing channel to target call
9292
*CallsApi* | [**call_remove_channel**](docs/CallsApi.md#call_remove_channel) | **DELETE** /calls/{callId}/channels/{channelId} | Removes channel from the call
9393
*CallsApi* | [**call_reroute**](docs/CallsApi.md#call_reroute) | **POST** /calls/{callId}/_reroute | Let the call ring to another agent
9494
*CallsApi* | [**call_ring**](docs/CallsApi.md#call_ring) | **POST** /calls/{callId}/_ring | Let the call ring
@@ -178,7 +178,6 @@ Class | Method | HTTP request | Description
178178
- [BillingStatus](docs/BillingStatus.md)
179179
- [Call](docs/Call.md)
180180
- [CallAgent](docs/CallAgent.md)
181-
- [CallChannel](docs/CallChannel.md)
182181
- [CallMessage](docs/CallMessage.md)
183182
- [CallStatus](docs/CallStatus.md)
184183
- [CannedMessage](docs/CannedMessage.md)

docs/CallsApi.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88
[**call_answer**](CallsApi.md#call_answer) | **POST** /calls/{callId}/_answer | Set call as answered by agent
99
[**call_create**](CallsApi.md#call_create) | **POST** /calls/{callId} | Create new call
1010
[**call_get_status**](CallsApi.md#call_get_status) | **GET** /calls/{callId}/status | Return the status of call
11-
[**call_move_channel**](CallsApi.md#call_move_channel) | **POST** /calls/{callId}/channels | Moves existing channel to this call
11+
[**call_move_channel**](CallsApi.md#call_move_channel) | **POST** /calls/{callId}/channels/{channelId}/_move | Moves existing channel to target call
1212
[**call_remove_channel**](CallsApi.md#call_remove_channel) | **DELETE** /calls/{callId}/channels/{channelId} | Removes channel from the call
1313
[**call_reroute**](CallsApi.md#call_reroute) | **POST** /calls/{callId}/_reroute | Let the call ring to another agent
1414
[**call_ring**](CallsApi.md#call_ring) | **POST** /calls/{callId}/_ring | Let the call ring
@@ -243,9 +243,9 @@ Name | Type | Description | Notes
243243
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
244244

245245
# **call_move_channel**
246-
> OkResponse call_move_channel(call_id, body=body)
246+
> OkResponse call_move_channel(call_id, channel_id, to_call_id)
247247
248-
Moves existing channel to this call
248+
Moves existing channel to target call
249249

250250
### Example
251251
```python
@@ -260,11 +260,12 @@ liveagent_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
260260
# create an instance of the API class
261261
api_instance = liveagent_api.CallsApi()
262262
call_id = 'call_id_example' # str |
263-
body = liveagent_api.CallChannel() # CallChannel | (optional)
263+
channel_id = 'channel_id_example' # str |
264+
to_call_id = 'to_call_id_example' # str | Target call
264265

265266
try:
266-
# Moves existing channel to this call
267-
api_response = api_instance.call_move_channel(call_id, body=body)
267+
# Moves existing channel to target call
268+
api_response = api_instance.call_move_channel(call_id, channel_id, to_call_id)
268269
pprint(api_response)
269270
except ApiException as e:
270271
print "Exception when calling CallsApi->call_move_channel: %s\n" % e
@@ -275,7 +276,8 @@ except ApiException as e:
275276
Name | Type | Description | Notes
276277
------------- | ------------- | ------------- | -------------
277278
**call_id** | **str**| |
278-
**body** | [**CallChannel**](CallChannel.md)| | [optional]
279+
**channel_id** | **str**| |
280+
**to_call_id** | **str**| Target call |
279281

280282
### Return type
281283

liveagent_api/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .models.billing_status import BillingStatus
1111
from .models.call import Call
1212
from .models.call_agent import CallAgent
13-
from .models.call_channel import CallChannel
1413
from .models.call_message import CallMessage
1514
from .models.call_status import CallStatus
1615
from .models.canned_message import CannedMessage

liveagent_api/apis/calls_api.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ def call_get_status(self, call_id, **kwargs):
383383
callback=params.get('callback'))
384384
return response
385385

386-
def call_move_channel(self, call_id, **kwargs):
386+
def call_move_channel(self, call_id, channel_id, to_call_id, **kwargs):
387387
"""
388-
Moves existing channel to this call
388+
Moves existing channel to target call
389389
390390
391391
This method makes a synchronous HTTP request by default. To make an
@@ -394,18 +394,19 @@ def call_move_channel(self, call_id, **kwargs):
394394
>>> def callback_function(response):
395395
>>> pprint(response)
396396
>>>
397-
>>> thread = api.call_move_channel(call_id, callback=callback_function)
397+
>>> thread = api.call_move_channel(call_id, channel_id, to_call_id, callback=callback_function)
398398
399399
:param callback function: The callback function
400400
for asynchronous request. (optional)
401401
:param str call_id: (required)
402-
:param CallChannel body:
402+
:param str channel_id: (required)
403+
:param str to_call_id: Target call (required)
403404
:return: OkResponse
404405
If the method is called asynchronously,
405406
returns the request thread.
406407
"""
407408

408-
all_params = ['call_id', 'body']
409+
all_params = ['call_id', 'channel_id', 'to_call_id']
409410
all_params.append('callback')
410411

411412
params = locals()
@@ -421,22 +422,30 @@ def call_move_channel(self, call_id, **kwargs):
421422
# verify the required parameter 'call_id' is set
422423
if ('call_id' not in params) or (params['call_id'] is None):
423424
raise ValueError("Missing the required parameter `call_id` when calling `call_move_channel`")
425+
# verify the required parameter 'channel_id' is set
426+
if ('channel_id' not in params) or (params['channel_id'] is None):
427+
raise ValueError("Missing the required parameter `channel_id` when calling `call_move_channel`")
428+
# verify the required parameter 'to_call_id' is set
429+
if ('to_call_id' not in params) or (params['to_call_id'] is None):
430+
raise ValueError("Missing the required parameter `to_call_id` when calling `call_move_channel`")
424431

425-
resource_path = '/calls/{callId}/channels'.replace('{format}', 'json')
432+
resource_path = '/calls/{callId}/channels/{channelId}/_move'.replace('{format}', 'json')
426433
path_params = {}
427434
if 'call_id' in params:
428435
path_params['callId'] = params['call_id']
436+
if 'channel_id' in params:
437+
path_params['channelId'] = params['channel_id']
429438

430439
query_params = {}
440+
if 'to_call_id' in params:
441+
query_params['to_callId'] = params['to_call_id']
431442

432443
header_params = {}
433444

434445
form_params = []
435446
local_var_files = {}
436447

437448
body_params = None
438-
if 'body' in params:
439-
body_params = params['body']
440449

441450
# HTTP header `Accept`
442451
header_params['Accept'] = self.api_client.\

liveagent_api/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .billing_status import BillingStatus
1111
from .call import Call
1212
from .call_agent import CallAgent
13-
from .call_channel import CallChannel
1413
from .call_message import CallMessage
1514
from .call_status import CallStatus
1615
from .canned_message import CannedMessage

0 commit comments

Comments
 (0)