Skip to content

Commit

Permalink
Merge pull request #270 from plivo/verify-locale-python-sdk-support
Browse files Browse the repository at this point in the history
locale param support for create session verify
  • Loading branch information
kanishka2104 authored Jun 6, 2024
2 parents a5dedf8 + b57c81f commit f846a26
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 4 additions & 2 deletions plivo/resources/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', ),
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.54.1'
__version__ = '4.55.0'
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.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',
Expand Down

0 comments on commit f846a26

Please sign in to comment.