twitch

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserToken

func GetUserToken(client_id string, client_secret string, socket string) (string, error)

Types

type Channel

type Channel struct {
	Status      string `json:"status"`
	DisplayName string `json:"display_name"`
	Url         string `json:"url"`
}

type FollowedStreamsResponse

type FollowedStreamsResponse struct {
	Streams []Stream `json:"streams"`
}

func GetFollowedStreams

func GetFollowedStreams(token string) (FollowedStreamsResponse, error)

type Stream

type Stream struct {
	Game        string  `json:"game"`
	Viewers     int     `json:"viewers"`
	AverageFps  float32 `json:"average_fps"`
	VideoHeight int     `json:"video_height"`
	Channel     Channel `json:"channel"`
}

type TokenResponse

type TokenResponse struct {
	AccessToken string   `json:"access_token"`
	Scope       []string `json:"scope"`
}

Jump to

Keyboard shortcuts

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