Skip to content

Commit

Permalink
Adds error detail for list and get campaign (#190)
Browse files Browse the repository at this point in the history
* add error details for list and get campaign

* field type change
  • Loading branch information
prashantjha-plivo authored Dec 1, 2023
1 parent e69fb01 commit 018c420
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [7.44.0](https://github.com/plivo/plivo-go/tree/v7.44.0) (2023-11-20)
**Feature - New params for GET and LIST Campaign API**
- Added new params 'error_code', 'error_reason' for GET and LIST Campaign API

## [7.43.0](https://github.com/plivo/plivo-go/tree/v7.43.0) (2023-11-29)
**Bug Fix - Create Powerpack and Update Powerpack**
- Create Powerpack and Update Powerpack now take boolean inputs for sticky sender and local connect.
Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "7.43.0"
const sdkVersion = "7.44.0"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
2 changes: 2 additions & 0 deletions campaign.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ type Campaign struct {
CampaignAttributes CampaignAttributes `json:"campaign_attributes,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
CampaignSource string `json:"campaign_source,omitempty"`
ErrorCode string `json:"error_code,omitempty"`
ErrorReason string `json:"error_reason,omitempty"`
}

type CampaignAttributes struct {
Expand Down

0 comments on commit 018c420

Please sign in to comment.