Retrieve video content
client.Videos.DownloadContent(ctx, videoID, query) (*Response, error)
GET/videos/{video_id}/content
Download video content
Parameters
videoID string
Returns
type VideoDownloadContentResponse interface{…}
Retrieve video content
package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Videos.DownloadContent(
context.TODO(),
"video_123",
openai.VideoDownloadContentParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}