steambox

package
v0.0.0-...-2b658eb Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	// contains filtered or unexported fields
}

Box defines the steam box.

func NewBox

func NewBox(apikey string, ghUsername, ghToken string) *Box

NewBox creates a new Box with the given API key.

func (*Box) GetGist

func (b *Box) GetGist(ctx context.Context, id string) (*github.Gist, error)

GetGist gets the gist from github.com.

func (*Box) GetPlayTime

func (b *Box) GetPlayTime(ctx context.Context, steamID uint64, multiLined bool, appID ...uint32) ([]string, error)

GetPlayTime gets the top 5 Steam games played in descending order from the Steam API.

func (*Box) GetRecentGames

func (b *Box) GetRecentGames(ctx context.Context, steamID uint64, multiLined bool) ([]string, error)

GetRecentGames gets 5 recently played games from the Steam API.

func (*Box) UpdateGist

func (b *Box) UpdateGist(ctx context.Context, id string, gist *github.Gist) error

UpdateGist updates the gist.

func (*Box) UpdateMarkdown

func (b *Box) UpdateMarkdown(ctx context.Context, title, filename string, content []byte) error

UpdateMarkdown updates the content to the markdown file.

Jump to

Keyboard shortcuts

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