diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e28296a..57a2c879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.18.0](https://github.com/plivo/plivo-python/tree/v4.18.0) (2021-07-13) +- Power pack ID has been included to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message). +- Support for filtering messages by Power pack ID has been added to the [list all messages API](https://www.plivo.com/docs/sms/api/message#list-all-messages). + ## [4.17.0](https://github.com/plivo/plivo-python/tree/v4.17.0) (2021-07-07) - Add SDK support for MPC enhancements. diff --git a/plivo/resources/messages.py b/plivo/resources/messages.py index 92a4bd30..65d28b4d 100644 --- a/plivo/resources/messages.py +++ b/plivo/resources/messages.py @@ -95,7 +95,8 @@ def get(self, message_uuid): all_of( of_type(*six.integer_types), check(lambda offset: 0 <= offset, '0 <= offset'))) - ]) + ], + powerpack_id=[optional(of_type(six.text_type))]) def list(self, subaccount=None, message_direction=None, @@ -107,7 +108,8 @@ def list(self, message_state=None, limit=None, offset=None, - error_code=None): + error_code=None, + powerpack_id=None): return self.client.request( 'GET', ('Message', ), to_param_dict(self.list, locals()), diff --git a/plivo/version.py b/plivo/version.py index 6eeddaec..ef313e95 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = '4.17.0' +__version__ = '4.18.0' + diff --git a/setup.py b/setup.py index 542f21f7..3d6618ab 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.17.0', + version='4.18.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',