Skip to content

Commit

Permalink
Locale param added for verify (#209)
Browse files Browse the repository at this point in the history
* Locale param added for verify

* changelog update

* Added locale support for list and get session

* Updated changelog
  • Loading branch information
rajneeshkatkam-plivo authored Jul 11, 2024
1 parent b545682 commit bc08145
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,4 +1,8 @@
# Change Log
## [7.51.0](https://github.com/plivo/plivo-go/tree/v7.51.0) (2024-07-11)
**Feature - Adding support for Locale param in Create, Get and List Session**
- Added new request param `locale` in create Session API
- Added support for `locale` param in get and list Session response

## [7.50.1](https://github.com/plivo/plivo-go/tree/v7.50.1) (2024-07-01)
- Added Send digits and send on preanswer attribute in add participant
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.50.1"
const sdkVersion = "7.51.0"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
2 changes: 2 additions & 0 deletions verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type Session struct {
Alias string `json:"alias,omitempty"`
Recipient string `json:"recipient,omitempty"`
Channel string `json:"channel,omitempty"`
Locale string `json:"locale,omitempty"`
Status string `json:"status,omitempty"`
Count int `json:"count,omitempty"`
RequesterIP string `json:"requestor_ip,omitempty"`
Expand Down Expand Up @@ -65,6 +66,7 @@ type SessionCreateParams struct {
URL string `json:"url,omitempty"`
Method string `json:"method,omitempty"`
Src string `json:"src,omitempty"`
Locale string `json:"locale,omitempty"`
}

type SessionCreateResponseBody struct {
Expand Down

0 comments on commit bc08145

Please sign in to comment.