Skip to content

YouEclipse/steam-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 15, 2023
3a7203f ยท Oct 15, 2023

History

11 Commits
Oct 15, 2023
Oct 15, 2023
Oct 15, 2023
Oct 15, 2023
Oct 15, 2023
Oct 15, 2023

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages