Skip to content

Commit

Permalink
paramAddedInSpeakApi (#193)
Browse files Browse the repository at this point in the history
* paramAddedInSpeakApi

* callbackUrl

* callback
  • Loading branch information
ajay-plivo authored Jan 4, 2024
1 parent c0af993 commit 38b1493
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
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.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
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.45.0"
const sdkVersion = "7.45.1"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
15 changes: 9 additions & 6 deletions calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 7 additions & 4 deletions multipartycall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 38b1493

Please sign in to comment.