๐ฎ Go library for accessing the Steamworks Web API
Go version 1.13+
go get github.com/YouEclipse/steam-go
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)
}
- IBroadcastService Interface
- ICheatReportingService Interface
- ICloudService Interface
- IEconMarketService Interface
- IEconService Interface
- IGameInventory Interface
- IGameNotificationsService Interface
- IGameServersService Interface
- IInventoryService Interface
- ILobbyMatchmakingService Interface
- IPlayerService Interface
- IPublishedFileService Interface
- ISiteLicenseService Interface
- ISteamApps Interface
- ISteamCommunity Interface
- ISteamEconomy Interface
- ISteamGameServerStats Interface
- ISteamLeaderboards Interface
- ISteamMicroTxn Interface
- ISteamMicroTxnSandbox Interface
- ISteamNews Interface
- ISteamPublishedItemSearch Interface
- ISteamPublishedItemVoting Interface
- ISteamRemoteStorage Interface
- ISteamUserAuth Interface
- ISteamUser Interface
- ISteamUserStats Interface
- ISteamWebAPIUtil Interface
- IWorkshopService Interface
...
This project is licensed under Apache-2.0