From 0f628452f0d7ff6c51a21af36debc775efa9405d Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam <110394672+rajneeshkatkam-plivo@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:46:06 +0530 Subject: [PATCH] Added registration_status filter to Go SDK (#189) --- CHANGELOG.md | 4 ++++ baseclient.go | 2 +- campaign.go | 11 ++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a4d0b3..aad7a85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [7.42.0](https://github.com/plivo/plivo-go/tree/v7.42.0) (2023-11-07) +**Feature - Campaign List API Enhancements** +- registration_status field in LIST API + ## [7.41.0](https://github.com/plivo/plivo-go/tree/v7.41.0) (2023-10-31) **Feature - TollFree Verification API Support** - API support for Create, Update, Get, Delete and List Tollfree Verification. diff --git a/baseclient.go b/baseclient.go index 15a9bce..5aebd85 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.41.0" +const sdkVersion = "7.42.0" const lookupBaseUrl = "lookup.plivo.com" diff --git a/campaign.go b/campaign.go index 126687b..a104ac9 100644 --- a/campaign.go +++ b/campaign.go @@ -126,11 +126,12 @@ type OperatorDetail struct { TPM int `json:"tpm,omitempty"` } type CampaignListParams struct { - BrandID *string `json:"brand_id,omitempty"` - Usecase *string `json:"usecase,omitempty"` - CampaignSource *string `json:"campaign_source,omitempty"` - Limit int `url:"limit,omitempty"` - Offset int `url:"offset,omitempty"` + BrandID *string `url:"brand_id,omitempty"` + Usecase *string `url:"usecase,omitempty"` + RegistrationStatus *string `url:"registration_status,omitempty"` + CampaignSource *string `url:"campaign_source,omitempty"` + Limit int `url:"limit,omitempty"` + Offset int `url:"offset,omitempty"` } type CampaignNumberLinkParams struct {