module
Version:
v0.0.0-...-3b30780
Opens a new window with list of versions in this module.
Published: Oct 10, 2020
License: Apache-2.0
Opens a new window with license information.
README
ยถ
steam-go [WIP]
๐ฎ Go library for accessing the Steamworks Web API
๐๏ธ 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
ยถ
Click to show internal directories.
Click to hide internal directories.