Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 790 Bytes

videos_docs.md

File metadata and controls

49 lines (39 loc) · 790 Bytes

Videos Documentation

Get Videos

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)

Delete Videos

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)