This is an example of how to get a multiples clip via their IDs.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.GetClips(&helix.ClipsParams{
IDs: []string{"EncouragingPluckySlothSSSsss", "PatientBlindingChamoisSmoocherZ"},
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)
This is an example of how to get multiple clips from a single broadcaster.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.GetClips(&helix.ClipsParams{
BroadcasterID: "26490481", // summit1g
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)
This is an example of how to get multiple clips from a single game.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.GetClips(&helix.ClipsParams{
GameID: "490377", // Sea of Thieves
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)
This is an example of how to create a clip:
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
UserAccessToken: "your-user-acceess-token",
})
if err != nil {
// handle error
}
resp, err := client.CreateClip(&helix.CreateClipParams{
BroadcasterID: "26490481", // summit1g
HasDelay: true, // optional, defaults to false
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)