Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
helix
✓ github.com/nicklaw5/helix
Creates a Twitch Helix client and fetches user information.
package main
import (
"fmt"
"github.com/nicklaw5/helix"
)
func main() {
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
})
if err != nil {
panic(err)
}
resp, err := client.GetUsers(&helix.UsersParams{Logins: []string{"twitchdev"}})
if err != nil {
panic(err)
}
fmt.Println(resp.Data.Users[0].DisplayName)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.25.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.