Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 820 Bytes

streams_docs.md

File metadata and controls

46 lines (36 loc) · 820 Bytes

Streams Documentation

Get Streams

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)

Get Followed Streams

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)