From 38b14932085d4716ce4bb65f00f1c9c597b112ec Mon Sep 17 00:00:00 2001 From: ajay-plivo <96424204+ajay-plivo@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:47:47 +0530 Subject: [PATCH] paramAddedInSpeakApi (#193) * paramAddedInSpeakApi * callbackUrl * callback --- CHANGELOG.md | 4 ++++ baseclient.go | 2 +- calls.go | 15 +++++++++------ multipartycall.go | 11 +++++++---- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37a722f..8aa22ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [7.45.1](https://github.com/plivo/plivo-go/tree/v7.45.1) (2023-12-19) +**Feature - Added type params for speak api in call and mpc** +- Added params 'type' for POST Speak API for Call and MPC + ## [7.45.0](https://github.com/plivo/plivo-go/tree/v7.45.0) (2023-12-14) **Feature - Added params for GET and LIST Campaign APIs** - Added params 'vertical', 'campaign_alias' for GET and LIST Campaign APIs diff --git a/baseclient.go b/baseclient.go index d2c44b9..db56503 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.45.0" +const sdkVersion = "7.45.1" const lookupBaseUrl = "lookup.plivo.com" diff --git a/calls.go b/calls.go index 3f87612..26dff1f 100644 --- a/calls.go +++ b/calls.go @@ -201,12 +201,15 @@ type CallPlayResponse struct { } type CallSpeakParams struct { - Text string `json:"text" url:"text"` - Voice string `json:"length,omitempty" url:"length,omitempty"` - Language string `json:"language,omitempty" url:"language,omitempty"` - Legs string `json:"legs,omitempty" url:"legs,omitempty"` - Loop bool `json:"loop,omitempty" url:"loop,omitempty"` - Mix bool `json:"mix,omitempty" url:"mix,omitempty"` + Text string `json:"text" url:"text"` + Voice string `json:"length,omitempty" url:"length,omitempty"` + Language string `json:"language,omitempty" url:"language,omitempty"` + Legs string `json:"legs,omitempty" url:"legs,omitempty"` + Loop bool `json:"loop,omitempty" url:"loop,omitempty"` + Mix bool `json:"mix,omitempty" url:"mix,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + CallbackURL string `json:"callback_url,omitempty" url:"callback_url,omitempty"` + CallbackMethod string `json:"callback_method,omitempty" url:"callback_method,omitempty"` } type CallSpeakResponse struct { diff --git a/multipartycall.go b/multipartycall.go index 4263048..38589ea 100644 --- a/multipartycall.go +++ b/multipartycall.go @@ -204,10 +204,13 @@ type MultiPartyCallAudioResponse struct { } type MultiPartyCallSpeakParams struct { - Text string `json:"text" url:"text"` - Voice string `json:"voice" url:"voice,omitempty"` - Language string `json:"language" url:"language,omitempty"` - Mix bool `json:"mix" url:"mix,omitempty"` + Text string `json:"text" url:"text"` + Voice string `json:"voice" url:"voice,omitempty"` + Language string `json:"language" url:"language,omitempty"` + Mix bool `json:"mix" url:"mix,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + CallbackURL string `json:"callback_url,omitempty" url:"callback_url,omitempty"` + CallbackMethod string `json:"callback_method,omitempty" url:"callback_method,omitempty"` } func (service *MultiPartyCallService) List(params MultiPartyCallListParams) (response *MultiPartyCallListResponse, err error) {