twitch

package module
v0.0.0-...-34bcd5e Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2015 License: MIT Imports: 5 Imported by: 1

README

Go twitch library

Not complete, only updates game and status of channel.

Documentation

Index

Constants

View Source
const (
	CHANNELS_BASE_URL = "https://api.twitch.tv/kraken/channels/"
	STREAMS_BASE_URL  = "https://api.twitch.tv/kraken/streams/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitchApi

type TwitchApi struct {
	Channel      string
	ChannelOauth string
	ChannelsUrl  string
	StreamsURL   string
}

func New

func New(ChannelName, Oauth string) *TwitchApi

func (*TwitchApi) UpdateGame

func (tw *TwitchApi) UpdateGame(game string) error

func (*TwitchApi) UpdateStatus

func (tw *TwitchApi) UpdateStatus(status string) error

func (*TwitchApi) Uptime

func (tw *TwitchApi) Uptime() (string, error)

Jump to

Keyboard shortcuts

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