From b6344db268ad610eefd29f10ff7a186214016e99 Mon Sep 17 00:00:00 2001 From: narayana Date: Mon, 5 Dec 2022 10:45:53 +0530 Subject: [PATCH 1/5] message expiry --- plivo/resources/messages.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plivo/resources/messages.py b/plivo/resources/messages.py index 65d28b4d..c982f26d 100644 --- a/plivo/resources/messages.py +++ b/plivo/resources/messages.py @@ -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, @@ -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') From 1b53eff435dc38b865a0d1bd0e7e41b8e7303e5e Mon Sep 17 00:00:00 2001 From: narayana Date: Thu, 5 Jan 2023 16:41:28 +0530 Subject: [PATCH 2/5] int type --- plivo/resources/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plivo/resources/messages.py b/plivo/resources/messages.py index c982f26d..350a126a 100644 --- a/plivo/resources/messages.py +++ b/plivo/resources/messages.py @@ -40,7 +40,7 @@ class Messages(PlivoResourceInterface): powerpack_uuid=[optional(of_type(six.text_type))], media_urls=[optional(of_type_exact(list))], media_ids=[optional(of_type_exact(list))], - message_expiry=[optional(of_type(six.integer_types))]) + message_expiry=[optional(of_type(*six.integer_types))]) def create(self, dst, text=None, From a1fca57c27459897c2ad38578f45542a075a028a Mon Sep 17 00:00:00 2001 From: kanishka2104 <88705700+kanishka2104@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:30:53 +0530 Subject: [PATCH 3/5] version update --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df01f804..0f89fcd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,16 @@ # 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 + +## [4.29.0](https://github.com/plivo/plivo-python/tree/v4.29.0) (2022-12-06) +**Adding Delete campaign and brand** +-Added delete campaign and brand + ## [4.28.0](https://github.com/plivo/plivo-python/tree/v4.28.0) (2022-11-03) **Adding Brand Usecase request** -Added Brand Usecase request From 44e71810e4d9fadfa107ce1a0466674ea2ab2c68 Mon Sep 17 00:00:00 2001 From: kanishka2104 <88705700+kanishka2104@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:31:44 +0530 Subject: [PATCH 4/5] version update --- plivo/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plivo/version.py b/plivo/version.py index 5f2ef79e..881e81d8 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.28.0' +__version__ = '4.31.0' From 768ea7429470df104d200c93bc4905ae5b8c62b8 Mon Sep 17 00:00:00 2001 From: kanishka2104 <88705700+kanishka2104@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:32:19 +0530 Subject: [PATCH 5/5] version update --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3f7975fe..362ca528 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.28.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',