From 3653c06422a4af3af1bf47eda63f691b37215ab0 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Plivo <126571031+ashutoshkumar-plivo@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:02:51 +0530 Subject: [PATCH] SMS-6997: add brand_name and app_hash in create and list api (#273) * SMS-6997: add brand_name and app_hash in create and list session api * added version * code length param * fix * add version --------- Co-authored-by: narayana-plivo --- CHANGELOG.md | 4 ++++ plivo/resources/verify.py | 9 +++++++-- plivo/version.py | 2 +- setup.py | 2 +- tests/resources/fixtures/sessionListResponse.json | 4 ++-- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de310803..40f99bf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log +## [4.55.3](https://github.com/plivo/plivo-python/tree/v4.55.3) (2024-09-06) +**Feature - Adding support for brand_name, code_length and app_hash in Create,Get and List Session** +- Added new request param `brand_name` , `app_hash` and `code_length` in create Session API +- Added support for `brand_name`,`code_length` and `app_hash` param in get and list Session response ## [4.55.2](https://github.com/plivo/plivo-python/tree/v4.55.2) (2024-09-03) **Feature - Adding new element for Audio Stream XML ** diff --git a/plivo/resources/verify.py b/plivo/resources/verify.py index bf2176fa..d953bd18 100644 --- a/plivo/resources/verify.py +++ b/plivo/resources/verify.py @@ -35,7 +35,10 @@ def create(self, channel=None, url=None, method='POST', - locale=None): + locale=None, + brand_name=None, + app_hash=None, + code_length=None): if recipient is None: raise ValidationError('destination number is required') return self.client.request('POST', ('Verify', 'Session', ), @@ -83,7 +86,9 @@ def list(self, app_uuid=None, recipient=None, limit=None, - offset=None): + offset=None, + brand_name=None, + app_hash=None): return self.client.request( 'GET', ('Verify', 'Session', ), to_param_dict(self.list, locals()), diff --git a/plivo/version.py b/plivo/version.py index ef870173..1bdb9dd1 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.55.2' +__version__ = '4.55.3' diff --git a/setup.py b/setup.py index 9b099fba..fdd3d5a3 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.55.2', + version='4.55.3', description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML', long_description=long_description, url='https://github.com/plivo/plivo-python', diff --git a/tests/resources/fixtures/sessionListResponse.json b/tests/resources/fixtures/sessionListResponse.json index 047e728c..77e3f23b 100644 --- a/tests/resources/fixtures/sessionListResponse.json +++ b/tests/resources/fixtures/sessionListResponse.json @@ -473,7 +473,7 @@ "session_uuid": "5968e08a-80d4-4da6-a680-4e7aa9a47888", "app_uuid": "abcaeb46-ca04-4c13-b066-bfdb27dd50f0", "alias": "new_voice3", - "recipient": "918707046409", + "recipient": "911234567890", "channel": "sms", "status": "expired", "count": 2, @@ -517,7 +517,7 @@ "session_uuid": "b5f1faa6-f31c-453c-9435-1c9d949b9532", "app_uuid": "eeb90c7b-9367-4457-8644-47007661bff5", "alias": "new_voice3", - "recipient": "918707046409", + "recipient": "911234567890", "channel": "sms", "status": "expired", "count": 1,