Skip to content

Commit 3220a74

Browse files
authored
Merge pull request #191 from plivo/VT-3946
updateEndpoint
2 parents efc0ddc + ca1e2c9 commit 3220a74

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Change Log
2+
## [4.22.1](https://github.com/plivo/plivo-python/tree/v4.22.1) (2022-02-10)
3+
**Features - EndpointUpdated**
4+
- neglecting endpoint_id in to_param_dict function
25

36
## [4.22.0](https://github.com/plivo/plivo-python/tree/v4.22.0) (2022-01-27)
47
**Features - MPCStartCallRecording**

plivo/resources/endpoints.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,16 @@ def list(self, limit=20, offset=0):
6565
alias=[optional(of_type(six.text_type))],
6666
app_id=[optional(of_type(six.text_type))])
6767
def update(self, endpoint_id, password=None, alias=None, app_id=None):
68+
69+
# not using locals() because we need to neglect endpoint_id
70+
temp = {
71+
'self': self,
72+
'password': password,
73+
'alias': alias,
74+
'app_id': app_id
75+
}
6876
return self.client.request('POST', ('Endpoint', endpoint_id),
69-
to_param_dict(self.update, locals()), is_voice_request=True)
77+
to_param_dict(self.update, temp), is_voice_request=True)
7078

7179
@validate_args(endpoint_id=[of_type(six.text_type)])
7280
def delete(self, endpoint_id):

plivo/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = '4.22.0'
2+
__version__ = '4.22.1'
33

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='plivo',
13-
version='4.22.0',
13+
version='4.22.1',
1414
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
1515
long_description=long_description,
1616
url='https://github.com/plivo/plivo-python',

0 commit comments

Comments
 (0)