Skip to content

Commit

Permalink
VT-8411_1:transcription_callback_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-plivo committed Nov 13, 2024
1 parent 9c1115e commit 10d2d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transcription.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type TranscriptionCallbackUrlStruct struct {
}

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 := TranscriptionCallbackUrlStruct{TranscriptionCallbackUrl: request.CallbackUrl}
param := TranscriptionCallbackUrlStruct{TranscriptionCallbackUrl: request.TranscriptionCallbackUrl}
req, err := service.client.NewRequest("POST", param, "Transcription/%s", request.RecordingID)
if err != nil {
return
Expand Down

0 comments on commit 10d2d7f

Please sign in to comment.