Skip to content

journey-ad/steam-go

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%