Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.32 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.32 KB

Kettle Build Status GoDoc Go Report Card

Kettle is a simple Go package for accessing the Steam API, or xPaw documentation and the Storefront API.

If you find any errors please create an issue or I'll accept your pull request :)

Install

go get -u github.com/peppage/kettle

Usage

    httpClient := http.DefaultClient
    steamClient = kettle.NewClient(httpClient, "steamkey")

    // Get the full app list
    games, _, err := steamClient.ISteamAppsService.GetAppList()

    // Get reviews for a game
    d, _, err := steamClient.Store.AppReviews(&kettle.AppReviewsParams{
		AppID:    gameID,
		Language: "all",
	})

	// Get details about a game
	d, _, err := steamClient.Store.AppDetails(game.ID)

License

MIT License