Skip to content

Commit

Permalink
message expiry param support for send message api, get and list api (#…
Browse files Browse the repository at this point in the history
…155)

* message expiry param

* remove expiry object

* Version update

* Update baseclient.go

Co-authored-by: kanishka2104 <[email protected]>
  • Loading branch information
narayana-plivo and kanishka2104 authored Jan 18, 2023
1 parent ede74a5 commit 7df43f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log

## [7.17.0](https://github.com/plivo/plivo-go/tree/v7.17.0) (2023-01-18)
**Feature - Adding new param 'message_expiry' in Send Message API**
- Added new param 'message_expiry' in Send Message API

## [7.16.0](https://github.com/plivo/plivo-go/tree/v7.16.0) (2022-12-16)
**Feature - Update campaign**
- Update campaign API
Expand Down
3 changes: 2 additions & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "7.16.0"
const sdkVersion = "7.17.0"


const lookupBaseUrl = "lookup.plivo.com"

Expand Down
1 change: 1 addition & 0 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type MessageCreateParams struct {
MediaIds []string `json:"media_ids,omitempty" url:"media_ids,omitempty"`
// Either one of src and powerpackuuid should be given
PowerpackUUID string `json:"powerpack_uuid,omitempty" url:"powerpack_uuid,omitempty"`
MessageExpiry int `json:"message_expiry,omitempty" url:"message_expiry,omitempty"`
}

type Message struct {
Expand Down

0 comments on commit 7df43f4

Please sign in to comment.