Content-Length: 284789 | pFad | http://github.com/nicklaw5/helix/blob/main/docs/clips_docs.md

F4 helix/docs/clips_docs.md at main · nicklaw5/helix · GitHub
Skip to content

Latest commit

 

History

History
93 lines (72 loc) · 1.69 KB

clips_docs.md

File metadata and controls

93 lines (72 loc) · 1.69 KB

Clips Documentation

Get Clips

Example 1 - Individual Clips

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)

Example 2 - Broadcaster Clips

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)

Example 3 - Game Clips

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)

Create Clip

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nicklaw5/helix/blob/main/docs/clips_docs.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy