This is an example of how to get streams. Here we are requesting the first two streams from the English language.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.GetStreams(&helix.StreamsParams{
First: 10,
Language: []string{"en"},
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)
This is an example of how to get followed streams.
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
// handle error
}
resp, err := client.GetFollowedStream(&helix.FollowedStreamsParams{
UserID: "123456",
})
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)