Documentation
¶
Index ¶
- type AchievementSchema
- type AvailableGameStats
- type Client
- func (c *Client) GetGameSchema(appID int) (*GameSchemaResponse, error)
- func (c *Client) GetGameWithAchievements(game GameResponse) (*models.SteamGame, error)
- func (c *Client) GetOwnedGames(includeAppInfo, includePlayedFreeGames bool) ([]GameResponse, error)
- func (c *Client) GetPlayerAchievements(appID int) (*PlayerAchievementsResponse, error)
- type GameAbout
- type GameDeveloper
- type GameInfo
- type GamePublisher
- type GameResponse
- type GameSchemaResponse
- type OwnedGamesResponse
- type PlayerAchievement
- type PlayerAchievementsResponse
- type StatSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AchievementSchema ¶
type AvailableGameStats ¶
type AvailableGameStats struct {
Achievements []AchievementSchema `json:"achievements"`
Stats []StatSchema `json:"stats"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Steam Web API client.
func (*Client) GetGameSchema ¶
func (c *Client) GetGameSchema(appID int) (*GameSchemaResponse, error)
GetGameSchema retrieves the achievement schema for a game.
func (*Client) GetGameWithAchievements ¶
func (c *Client) GetGameWithAchievements(game GameResponse) (*models.SteamGame, error)
GetGameWithAchievements retrieves a game with all achievement data.
func (*Client) GetOwnedGames ¶
func (c *Client) GetOwnedGames(includeAppInfo, includePlayedFreeGames bool) ([]GameResponse, error)
GetOwnedGames retrieves the user's owned games.
func (*Client) GetPlayerAchievements ¶
func (c *Client) GetPlayerAchievements(appID int) (*PlayerAchievementsResponse, error)
GetPlayerAchievements retrieves the player's achievements for a game.
type GameDeveloper ¶
type GameDeveloper struct {
Name string `json:"name"`
}
type GameInfo ¶
type GameInfo struct {
GameName string `json:"gameName"`
GameVersion string `json:"gameVersion"`
AvailableGameStats *AvailableGameStats `json:"availableGameStats"`
About *GameAbout `json:"about"`
Developers []GameDeveloper `json:"developers"`
Publishers []GamePublisher `json:"publishers"`
}
type GamePublisher ¶
type GamePublisher struct {
Name string `json:"name"`
}
type GameResponse ¶
type GameResponse struct {
AppID int `json:"appid"`
Name string `json:"name"`
PlaytimeForever int `json:"playtime_forever"`
Playtime2Weeks int `json:"playtime_2weeks"`
RtimeLastPlayed *int64 `json:"rtime_last_played"`
ImgIconURL string `json:"img_icon_url"`
ImgLogoURL string `json:"img_logo_url"`
HasCommunityVisibleStats bool `json:"has_community_visible_stats"`
}
type GameSchemaResponse ¶
type GameSchemaResponse struct {
Game *GameInfo `json:"game"`
}
type OwnedGamesResponse ¶
type OwnedGamesResponse struct {
Response struct {
GameCount int `json:"game_count"`
Games []GameResponse `json:"games"`
} `json:"response"`
}
type PlayerAchievement ¶
type PlayerAchievementsResponse ¶
type PlayerAchievementsResponse struct {
PlayerStats struct {
SteamID string `json:"steamID"`
GameName string `json:"gameName"`
Achievements []PlayerAchievement `json:"achievements"`
Success bool `json:"success"`
} `json:"playerstats"`
}
type StatSchema ¶
Click to show internal directories.
Click to hide internal directories.