Skip to content

Commit

Permalink
SMS-6997: add brand_name and app_hash in create and list api (#211)
Browse files Browse the repository at this point in the history
* SMS-6997: add brand_name and app_hash in create and list api

* adding code length param

* version update

---------

Co-authored-by: narayana-plivo <narayana@plivo.com>
  • Loading branch information
ashutoshkumar-plivo and narayana-plivo authored Sep 6, 2024
1 parent 9198e72 commit b7dcbbb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
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.51.2](https://github.com/plivo/plivo-go/tree/v7.51.2) (2024-09-06)
**Feature - Adding support for brand_name, code_length and app_hash in Create,Get and List Session**
- Added new request param `brand_name`, `code_length` and `app_hash` in create Session API
- Added support for `brand_name` , `app_hash`, `code_length` param in get and list Session response

## [7.51.1](https://github.com/plivo/plivo-go/tree/v7.51.1) (2024-09-05)
**Feature - Adding new element for Audio Stream XML **
- Added `keepCallAlive` element in Audio Stream XML
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.51.1"
const sdkVersion = "7.51.2"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
20 changes: 14 additions & 6 deletions verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ type AttemptDetails struct {
Channel string `json:"channel,omitempty"`
AttemptUUID string `json:"attempt_uuid,omitempty"`
Status string `json:"status,omitempty"`
BrandName string `json:"brand_name,omitempty"`
AppHash string `json:"app_hash,omitempty"`
CodeLength int `json:"code_length,omitempty"`
Time time.Time `json:"time,omitempty"`
}

Expand All @@ -61,12 +64,15 @@ type AttemptCharges struct {
type SessionCreateParams struct {
Recipient string `json:"recipient,omitempty"`
// Optional parameters.
AppUUID string `json:"app_uuid,omitempty"`
Channel string `json:"channel,omitempty"`
URL string `json:"url,omitempty"`
Method string `json:"method,omitempty"`
Src string `json:"src,omitempty"`
Locale string `json:"locale,omitempty"`
AppUUID string `json:"app_uuid,omitempty"`
Channel string `json:"channel,omitempty"`
URL string `json:"url,omitempty"`
Method string `json:"method,omitempty"`
Src string `json:"src,omitempty"`
Locale string `json:"locale,omitempty"`
BrandName string `json:"brand_name,omitempty"`
AppHash string `json:"app_hash,omitempty"`
CodeLength int `json:"code_length,omitempty"`
}

type SessionCreateResponseBody struct {
Expand All @@ -88,6 +94,8 @@ type SessionListParams struct {
AppUUID string `url:"app_uuid,omitempty"`
Country string `url:"country,omitempty"`
Alias string `url:"alias,omitempty"`
BrandName string `json:"brand_name,omitempty"`
AppHash string `json:"app_hash,omitempty"`
SessionTime string `url:"session_time,omitempty"`
Subaccount string `url:"subaccount,omitempty"`
SessionTimeGreaterThan string `url:"session_time__gt,omitempty"`
Expand Down

0 comments on commit b7dcbbb

Please sign in to comment.