This is an example of how to get videos.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.GetVideos(&helix.VideosParams{
GameID: "21779",
Period: "month",
Type: "highlight",
Sort: "views",
First: 10,
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)
This is an example of how to delete videos.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.DeleteVideos(&helix.DeleteVideosParams{
IDs: []string{"992599293"},
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)