Skip to content

Commit

Permalink
Merge pull request #173 from plivo/list-mdr-ppk-filter
Browse files Browse the repository at this point in the history
support powerpack id filter for list mdr
  • Loading branch information
huzaif-plivo authored Jul 13, 2021
2 parents b68dac4 + f49041c commit 3b0052a
Show file tree
Hide file tree
Showing 4 changed files with 11 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.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.

Expand Down
6 changes: 4 additions & 2 deletions plivo/resources/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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()),
Expand Down
3 changes: 2 additions & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
__version__ = '4.17.0'
__version__ = '4.18.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.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',
Expand Down

0 comments on commit 3b0052a

Please sign in to comment.