diff --git a/CHANGELOG.md b/CHANGELOG.md index 450d2f42..0f9100d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,14 @@ # Change Log + +## [4.26.2](https://github.com/plivo/plivo-python/tree/v4.26.2) (2022-09-28) +**10DLC: Adding more attributes to campaign creation request** +- Adding more attributes to campaign creation request + ## [4.26.1](https://github.com/plivo/plivo-python/tree/v4.26.1) (2022-09-08) **Feature - Limit bug fix** - Fixed Limit threshold in 10DLC APIs + ## [4.26.0](https://github.com/plivo/plivo-python/tree/v4.26.0) (2022-08-30) **Feature - 10DLC APIs** - Added new 10DLC APIs diff --git a/plivo/resources/campaign.py b/plivo/resources/campaign.py index efa28b5c..8dba9fcc 100644 --- a/plivo/resources/campaign.py +++ b/plivo/resources/campaign.py @@ -54,6 +54,13 @@ def list(self, brand=None, usecase=None, sample3=[optional(of_type(six.text_type))], sample4=[optional(of_type(six.text_type))], sample5=[optional(of_type(six.text_type))], + message_flow=[optional(of_type(six.text_type))], + help_message=[optional(of_type(six.text_type))], + optin_keywords=[optional(of_type(six.text_type))], + optin_message=[optional(of_type(six.text_type))], + optout_keywords=[optional(of_type(six.text_type))], + optout_message=[optional(of_type(six.text_type))], + help_keywords=[optional(of_type(six.text_type))], url=[optional(of_type(six.text_type))], method=[optional(of_type(six.text_type))]) def create(self, @@ -67,6 +74,13 @@ def create(self, sample4='', sample5='', url='', + message_flow='', + help_message='', + optin_keywords='', + optin_message='', + optout_keywords='', + optout_message='', + help_keywords='', method='POST', embedded_link=False, embedded_phone=False, diff --git a/plivo/version.py b/plivo/version.py index 78337876..999bdac2 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.26.1' +__version__ = '4.26.2' diff --git a/setup.py b/setup.py index 9658e659..6d123309 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.26.1', + version='4.26.2', 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', diff --git a/tests/resources/test_campaign.py b/tests/resources/test_campaign.py index 330f6d97..075dbca9 100644 --- a/tests/resources/test_campaign.py +++ b/tests/resources/test_campaign.py @@ -11,7 +11,7 @@ def test_create(self): vertical = "INSURANCE", usecase = "MIXED", sub_usecases = sub_usecase, - description = "sample description text", + description = "sample description is mandatory param and minimum 40 character,sample description is mandatory param and minimum 40 character", embedded_link = False, embedded_phone = False, age_gated = False, @@ -20,13 +20,20 @@ def test_create(self): subscriber_optout = True, subscriber_help = True, affiliate_marketing = False, - sample1 = "test 1", - sample2 = "test 2", + sample1 = "sample messgae 1 is mandatory param and minimum 20 character", + sample2 = "sample messgae 2 is mandatory param and minimum 20 character", sample3 = "test 1", sample4 = "test 2", sample5 = "test 2", url="http://example.com/test", - method="POST") + method="POST", + message_flow = "message flow is mandatory field with 40 minimum character length,message flow is mandatory field with 40 minimum character length", + help_message = "help messgae is mandatory param and minimum 20 character", + optin_keywords= '', + optin_message ='', + optout_keywords = '', + optout_message = "optout message should be mandatory and 20 minimum character", + help_keywords='') self.assertEqual('POST', self.client.current_request.method) self.assertUrlEqual( 'https://api.plivo.com/v1/Account/MAXXXXXXXXXXXXXXXXXX/10dlc/Campaign/',