From b57c81fdb57f9b74ae6b999e5b4d6750b0c05392 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Wed, 5 Jun 2024 13:23:55 +0530 Subject: [PATCH] locale param support for create session verify --- CHANGELOG.md | 4 ++++ plivo/resources/verify.py | 6 ++++-- plivo/version.py | 2 +- setup.py | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60ebff6f..f7a5d3b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.55.0](https://github.com/plivo/plivo-python/tree/v4.55.0) (2024-06-05) +**Feature - Adding locale support for Create Session API** +- Added new param `locale` for create session API + ## [4.54.1](https://github.com/plivo/plivo-python/tree/v4.54.1) (2024-05-28) **Feature - Adding Filtering support for List Application API** - Added new filter param `app_name` in list application API diff --git a/plivo/resources/verify.py b/plivo/resources/verify.py index 26d0d76f..bf2176fa 100644 --- a/plivo/resources/verify.py +++ b/plivo/resources/verify.py @@ -26,14 +26,16 @@ class Sessions(PlivoResourceInterface): recipient=[required(is_phonenumber())], channel=[optional(all_of(of_type(six.text_type), is_in(('sms', 'voice'))))], url=[optional(is_url())], - method=[optional(of_type(six.text_type))]) + method=[optional(of_type(six.text_type))], + locale=[optional(of_type(six.text_type))]) def create(self, app_uuid=None, otp=None, recipient=None, channel=None, url=None, - method='POST'): + method='POST', + locale=None): if recipient is None: raise ValidationError('destination number is required') return self.client.request('POST', ('Verify', 'Session', ), diff --git a/plivo/version.py b/plivo/version.py index c3668c3a..bf739aba 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.54.1' +__version__ = '4.55.0' diff --git a/setup.py b/setup.py index 79524257..76df724b 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.54.1', + version='4.55.0', 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',