Skip to content

Commit

Permalink
Merge pull request #251 from plivo/SMS-6439
Browse files Browse the repository at this point in the history
 SMS-6439: Adding registration_status filter option for Python SDK
  • Loading branch information
narayana-plivo authored Nov 22, 2023
2 parents 045f6bc + 05856fe commit 4490120
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log
## [4.46.0](https://github.com/plivo/plivo-python/tree/v4.46.0) (2023-11-06)
**Introducing registration_status**
- Added registration_status in LIST campaign APIs

## [4.45.0](https://github.com/plivo/plivo-python/tree/v4.45.0) (2023-11-03)
**Feature - TollFree Verification API Support**
Expand Down
3 changes: 2 additions & 1 deletion plivo/resources/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def update(self, campaign_id, reseller_id='', description='', sample1='', sample

@validate_args(
brand_id=[optional(of_type(six.text_type))],
registration_status=[optional(of_type(six.text_type))],
usecase=[optional(of_type(six.text_type))],
campaign_source=[optional(of_type(six.text_type))],
limit=[optional(of_type(*six.integer_types))],
Expand All @@ -54,7 +55,7 @@ def update(self, campaign_id, reseller_id='', description='', sample1='', sample
of_type(*six.integer_types),
check(lambda offset: 0 <= offset, '0 <= offset')))
])
def list(self, brand_id=None, usecase=None, campaign_source=None,
def list(self, brand_id=None, registration_status=None, usecase=None, campaign_source=None,
limit=None, offset=None):
return self.client.request(
'GET', ('10dlc', 'Campaign', ),
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.45.0'
__version__ = '4.46.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.45.0',
version='4.46.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 4490120

Please sign in to comment.