Skip to content

Commit

Permalink
Vt 8411 1 (#221)
Browse files Browse the repository at this point in the history
* VT-8411_1:transcription_callback_url

* VT-8411_1:transcription_callback_url

* VT-8456:RecordParticipantTrackXML (#224)

* VT-8411_1
  • Loading branch information
ajay-plivo authored Nov 15, 2024
1 parent 69acb24 commit 1c3ecdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions transcription.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ type GetRecordingTranscriptionRequest struct {
TranscriptionType string `json:"type"`
}

type CallBackUrlStruct struct {
CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"`
type TranscriptionCallbackUrlStruct struct {
TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"`
}

type RecordingTranscriptionRequest struct {
RecordingID string `json:"recording_id"`
CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"`
RecordingID string `json:"recording_id"`
TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"`
}

type DeleteRecordingTranscriptionRequest struct {
Expand All @@ -37,7 +37,7 @@ type GetRecordingTranscriptionResponse struct {
}

func (service *TranscriptionService) CreateRecordingTranscription(request RecordingTranscriptionRequest) (response map[string]interface{}, err error) {
param := CallBackUrlStruct{CallbackUrl: request.CallbackUrl}
param := TranscriptionCallbackUrlStruct{TranscriptionCallbackUrl: request.TranscriptionCallbackUrl}
req, err := service.client.NewRequest("POST", param, "Transcription/%s", request.RecordingID)
if err != nil {
return
Expand Down
6 changes: 6 additions & 0 deletions xml/plivoxml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,12 @@ type MultiPartyCallElement struct {
StartRecordingAudioMethod *string `xml:"StartRecordingAudioMethod,attr"`
StopRecordingAudio *string `xml:"StopRecordingAudio,attr"`
StopRecordingAudioMethod *string `xml:"StopRecordingAudioMethod,attr"`
RecordParticipantTrack *bool `xml:"recordParticipantTrack,attr"`
}

func (e MultiPartyCallElement) SetRecordParticipantTrack(value bool) MultiPartyCallElement {
e.RecordParticipantTrack = &value
return e
}

func (e MultiPartyCallElement) SetRole(value string) MultiPartyCallElement {
Expand Down

0 comments on commit 1c3ecdd

Please sign in to comment.