steam-go

module
v0.0.0-...-3b30780 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0

README ยถ

steam-go [WIP]

๐ŸŽฎ Go library for accessing the Steamworks Web API

go.dev reference Go

๐Ÿ—๏ธ Install

Requirments

Go version 1.13+

Install
go get github.com/YouEclipse/steam-go

๐Ÿš€ Quick start


package main

import (
	"context"
	"fmt"
	"os"
	"strconv"

	steam "github.com/YouEclipse/steam-go/pkg"
)

func main() {

	steamClient := steam.NewClient(os.Getenv("STEAM_API_KEY"), nil)
	steamID, _ := strconv.ParseUint(os.Getenv("STEAM_ID"), 10, 64)
	ctx := context.Background()
	params := &steam.GetOwnedGamesParams{
		SteamID:                steamID,
		IncludeAppInfo:         true,
		IncludePlayedFreeGames: true,
	}

	result, err := steamClient.IPlayerService.GetOwnedGames(ctx, params)
	if err != nil {
		panic(err)
	}

	fmt.Println(result)

}



โœ”๏ธ Features v0.1.0

...

๐Ÿ“„ License

This project is licensed under Apache-2.0

Directories ยถ

Path Synopsis

Jump to

Keyboard shortcuts

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