Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sms 5098 #230

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.34.0](https://github.com/plivo/plivo-python/tree/v4.34.0) (2023-24-03)
**Added new param - 'created_at' in list and get Profile, Brand, Campaign details api response**
- Added New Param `created_at` to the response of the [list all profiles API], [get profile API], [list all brands API], [get brand API], [list all campaigns API] and the [get campaign API]

## [4.33.0](https://github.com/plivo/plivo-python/tree/v4.33.0) (2023-02-23)
**Feature - Enhance MDR filtering capabilities **
- Added new fields on MDR object response
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.33.0'
__version__ = '4.34.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.33.0',
version='4.34.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
3 changes: 2 additions & 1 deletion tests/resources/fixtures/brandGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"entity_type": "INDIVIDUAL",
"profile_uuid": "6e9a16c7-27ae-44b4-8b1f-e6b9b007426b",
"registration_status": "COMPLETED",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
30 changes: 20 additions & 10 deletions tests/resources/fixtures/brandListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"brand_id": "BPL3KN9",
"brand_type": "STARTER",
"ein_issuing_country": "US",
"registration_status": "COMPLETED"
"registration_status": "COMPLETED",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -39,7 +40,8 @@
"entity_type": "INDIVIDUAL",
"profile_uuid": "55515d72-2852-4016-9ed9-c64bd1c0c055",
"registration_status": "COMPLETED",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -64,7 +66,8 @@
"entity_type": "INDIVIDUAL",
"profile_uuid": "71a18795-77fa-4623-9735-44bbd08d86c4",
"registration_status": "COMPLETED",
"vertical": "ENTERTAINMENT"
"vertical": "ENTERTAINMENT",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -81,7 +84,8 @@
"ein_issuing_country": "IN",
"profile_uuid": "d3d85b2d-a4c2-4f7b-a66f-83002a5fd5e8",
"registration_status": "COMPLETED",
"vertical": "ENTERTAINMENT"
"vertical": "ENTERTAINMENT",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -100,7 +104,8 @@
"ein_issuing_country": "US",
"profile_uuid": "709a4b1c-bbde-40e6-be36-164b1dc8f718",
"registration_status": "COMPLETED",
"vertical": "ENTERTAINMENT"
"vertical": "ENTERTAINMENT",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -127,7 +132,8 @@
"entity_type": "PRIVATE",
"profile_uuid": "a28b5892-4d8b-4098-9fe7-6f786fb0be1f",
"registration_status": "COMPLETED",
"vertical": "ENTERTAINMENT"
"vertical": "ENTERTAINMENT",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -152,7 +158,8 @@
"entity_type": "GOVERNMENT",
"profile_uuid": "ca01734d-a86a-4ed4-aa5a-8723cbb595b3",
"registration_status": "COMPLETED",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -178,7 +185,8 @@
"profile_uuid": "c1a1c66a-2bc4-4150-a3f3-033ec41efc5d",
"registration_status": "COMPLETED",
"vertical": "ENTERTAINMENT",
"website": "hibye.com"
"website": "hibye.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -207,7 +215,8 @@
"registration_status": "COMPLETED",
"vertical": "PROFESSIONAL",
"vetting_score": 80,
"vetting_status": "ACTIVE"
"vetting_status": "ACTIVE",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -226,7 +235,8 @@
"ein_issuing_country": "nil",
"profile_uuid": "f9ee4193-a8b7-49e6-aed1-2a286c7f5c4b",
"registration_status": "COMPLETED",
"vertical": "nil"
"vertical": "nil",
"created_at": "2023-03-07T11:25:28.262701Z"
}
],
"meta": {
Expand Down
3 changes: 2 additions & 1 deletion tests/resources/fixtures/campaignGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"registration_status": "ACTIVE",
"reseller_id": "",
"sub_usecase": "2FA,MARKETING",
"usecase": "STARTER"
"usecase": "STARTER",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
30 changes: 20 additions & 10 deletions tests/resources/fixtures/campaignListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"registration_status": "ACTIVE",
"reseller_id": "RFWG6CB",
"sub_usecase": "CUSTOMER_CARE",
"usecase": "STARTER"
"usecase": "STARTER",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BNOOLMO",
Expand All @@ -43,7 +44,8 @@
"registration_status": "FAILED",
"reseller_id": "",
"sub_usecase": "2FA,MARKETING",
"usecase": "STARTER"
"usecase": "STARTER",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BWDWMAC",
Expand All @@ -65,7 +67,8 @@
"registration_status": "ACTIVE",
"reseller_id": "",
"sub_usecase": "2FA,MARKETING",
"usecase": "STARTER"
"usecase": "STARTER",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BCKWPKX",
Expand All @@ -87,7 +90,8 @@
"registration_status": "PROCESSING",
"reseller_id": "",
"sub_usecase": "2FA,MARKETING",
"usecase": "MIXED"
"usecase": "MIXED",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "B2IYFNC",
Expand All @@ -109,7 +113,8 @@
"registration_status": "PROCESSING",
"reseller_id": "",
"sub_usecase": "2FA",
"usecase": "STARTER"
"usecase": "STARTER",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BK98MJL",
Expand All @@ -129,7 +134,8 @@
}
},
"registration_status": "ACTIVE",
"reseller_id": ""
"reseller_id": "",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "B3WKVGC",
Expand All @@ -151,7 +157,8 @@
"registration_status": "PROCESSING",
"reseller_id": "RFWG6CB",
"sub_usecase": "CUSTOMER_CARE",
"usecase": "STARTER"
"usecase": "STARTER",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BBYQU0Z",
Expand All @@ -172,7 +179,8 @@
},
"registration_status": "PROCESSING",
"reseller_id": "",
"usecase": "2FA"
"usecase": "2FA",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BBYQU0Z",
Expand All @@ -193,7 +201,8 @@
},
"registration_status": "ACTIVE",
"reseller_id": "",
"usecase": "2FA"
"usecase": "2FA",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BBYQU0Z",
Expand All @@ -214,7 +223,8 @@
},
"registration_status": "ACTIVE",
"reseller_id": "",
"usecase": "2FA"
"usecase": "2FA",
"created_at": "2023-03-07T11:25:28.262701Z"
}
],
"meta": {
Expand Down
3 changes: 2 additions & 1 deletion tests/resources/fixtures/campaignUpdateResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
},
"message_flow": "message flowmessage flowmessage flowmessage flowmessage flowmessage flowmessage flowmessage flowmessage flow",
"help_message": "help message 2help message 2help message 2help message 2help message 2help message 2help message 2help message 2",
"help_keywords": "HELP UPDATE"
"help_keywords": "HELP UPDATE",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
3 changes: 2 additions & 1 deletion tests/resources/fixtures/profileGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"profile_type": "SECONDARY",
"profile_uuid": "201faedc-7df9-4840-9ab1-3997ce3f7cf4",
"stock_symbol": "ABC",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
30 changes: 20 additions & 10 deletions tests/resources/fixtures/profileListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"stock_exchange": "NYSE",
"stock_symbol": "TESLA",
"vertical": "ENTERTAINMENT",
"website": "hibye.com"
"website": "hibye.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -67,7 +68,8 @@
"stock_exchange": "NYSE",
"stock_symbol": "TESLA",
"vertical": "ENTERTAINMENT",
"website": "hibye.com"
"website": "hibye.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -90,7 +92,8 @@
"profile_type": "SECONDARY",
"profile_uuid": "21ac739e-57fa-4945-a465-0ace7d43d9f1",
"vertical": "HEALTHCARE",
"website": "http://www.barkersleep.com/"
"website": "http://www.barkersleep.com/",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -120,7 +123,8 @@
"profile_uuid": "56711bac-af40-450a-b713-60cbd23ac28b",
"stock_exchange": "NSE",
"stock_symbol": "ABC",
"vertical": "PROFESSIONAL"
"vertical": "PROFESSIONAL",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -150,7 +154,8 @@
"profile_uuid": "287bc61b-10c2-452a-9137-4c1772292d6a",
"stock_exchange": "NSE",
"stock_symbol": "ABC",
"vertical": "PROFESSIONAL"
"vertical": "PROFESSIONAL",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -180,7 +185,8 @@
"stock_exchange": "NYSE",
"stock_symbol": "NSE",
"vertical": "TECHNOLOGY",
"website": "www.facebook.com"
"website": "www.facebook.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -210,7 +216,8 @@
"profile_uuid": "55cce8f9-2a0c-4b29-9ed5-a5f4c684e883",
"stock_exchange": "NSE",
"stock_symbol": "ABC",
"vertical": "PROFESSIONAL"
"vertical": "PROFESSIONAL",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -241,7 +248,8 @@
"stock_exchange": "NSE",
"stock_symbol": "ABC",
"vertical": "ENERGY",
"website": "www.google.com"
"website": "www.google.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -273,7 +281,8 @@
"stock_exchange": "NSE",
"stock_symbol": "ABC",
"vertical": "ENERGY",
"website": "www.google.com"
"website": "www.google.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -305,7 +314,8 @@
"stock_exchange": "NSE",
"stock_symbol": "ABC",
"vertical": "ENERGY",
"website": "www.google.com"
"website": "www.google.com",
"created_at": "2023-03-07T11:25:28.262701Z"
}
]
}
3 changes: 2 additions & 1 deletion tests/resources/fixtures/profileUpdateResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"profile_type": "SECONDARY",
"profile_uuid": "09322f43-fe16-4525-b8e4-4229c867795d",
"vertical": "ENERGY",
"website": "www.google.com"
"website": "www.google.com",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}