Skip to content

Commit

Permalink
SMS-6997: add brand_name and app_hash in create and list api (#273)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
ashutoshkumar-plivo and narayana-plivo authored Sep 6, 2024
1 parent 7a548d7 commit 3653c06
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 **
Expand Down
9 changes: 7 additions & 2 deletions plivo/resources/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', ),
Expand Down Expand Up @@ -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()),
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.55.2'
__version__ = '4.55.3'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/fixtures/sessionListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3653c06

Please sign in to comment.