twitch

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	ClientId      string
	AuthToken     string
	BroadcasterId int
}

func (*Api) GetClosestTwitchEndpoint

func (a *Api) GetClosestTwitchEndpoint() string

GetClosestTwitchEndpoint gets the closest ingestion endpoint URL template from Twitch

func (*Api) GetStreamKey

func (a *Api) GetStreamKey() string

GetStreamKey fetches the user's stream key from the Twitch API

func (*Api) GetTwitchEndpointUrl

func (a *Api) GetTwitchEndpointUrl() string

GetTwitchEndpointUrl returns a complete endpoint URL with the stream key embedded.

func (*Api) GetUserInfo

func (a *Api) GetUserInfo()

GetUserInfo updates the BroadcasterId for the Api struct for the user that owns the given AuthToken.

func (*Api) UpdateStreamTitle

func (a *Api) UpdateStreamTitle(title string)

UpdateStreamTitle sets the title of the user's stream to the given stream

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL