Skip to content

Commit

Permalink
Merge pull request #223 from plivo/message-expiry
Browse files Browse the repository at this point in the history
message expiry param support for send message api, get and list api
  • Loading branch information
narayana-plivo authored Jan 18, 2023
2 parents 114aec8 + 04007da commit d48ce7f
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,4 +1,8 @@
# Change Log
## [4.31.0](https://github.com/plivo/plivo-python/tree/v4.31.0) (2023-01-18)
**Adding new parameter in Send Message API**
-Added new parameter in Send Message API

## [4.30.0](https://github.com/plivo/plivo-python/tree/v4.30.0) (2022-12-16)
**Adding Update campaign**
-Added update campaign
Expand Down
6 changes: 4 additions & 2 deletions plivo/resources/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class Messages(PlivoResourceInterface):
trackable=[optional(of_type_exact(bool))],
powerpack_uuid=[optional(of_type(six.text_type))],
media_urls=[optional(of_type_exact(list))],
media_ids=[optional(of_type_exact(list))])
media_ids=[optional(of_type_exact(list))],
message_expiry=[optional(of_type(*six.integer_types))])
def create(self,
dst,
text=None,
Expand All @@ -51,7 +52,8 @@ def create(self,
trackable=False,
powerpack_uuid=None,
media_urls=None,
media_ids=None):
media_ids=None,
message_expiry=None):
if src in dst.split('<'):
raise ValidationError(
'destination number cannot be same as source number')
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.30.0'
__version__ = '4.31.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.30.0',
version='4.31.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 d48ce7f

Please sign in to comment.