Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramAddedInSpeakApi #193

Merged
merged 3 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading