Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Get(host, url string, resultPtr any, opts ...RequestOption) (*resty.Response, error)
- func (c *Client) IPlayerService() *IPlayerService
- func (c *Client) IPublishedFileService() *ISteamPublishedFileService
- func (c *Client) ISteamApps() *ISteamApps
- func (c *Client) ISteamBroadcastService() *ISteamBroadcastService
- func (c *Client) ISteamCommunity() *ISteamCommunity
- func (c *Client) ISteamGameServerStats() *ISteamGameServerStats
- func (c *Client) ISteamLeaderBoards() *ISteamLeaderBoards
- func (c *Client) ISteamNews() *ISteamNews
- func (c *Client) ISteamPublishedItemVoting() *ISteamPublishedItemVoting
- func (c *Client) ISteamPublishedSearch() *ISteamPublishedItemSearch
- func (c *Client) ISteamRemoteStorage() *ISteamRemoteStorage
- func (c *Client) ISteamUser() *ISteamUser
- func (c *Client) ISteamUserAuth() *ISteamUserAuth
- func (c *Client) ISteamWebAPIUtil() *ISteamWebAPIUtil
- func (c *Client) NewRequest(method, host, url string, options ...RequestOption) *Request
- func (c *Client) Post(host, url string, resultPtr any, opts ...RequestOption) (*resty.Response, error)
- func (c *Client) SendRequest(method, host, url string, resultPtr any, opts ...RequestOption) (*resty.Response, error)
- func (c *Client) Unknown(method, host, url string, opts ...RequestOption) (steam.CommonResponse, error)
- type ClientCfg
- type ClientOption
- type IPlayerService
- func (i *IPlayerService) GetBadges(steamId uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *IPlayerService) GetCommunityBadgeProgress(steamId uint, badgeId int, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *IPlayerService) GetOwnedGames(ownGameOpt player.OwnedGamesQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *IPlayerService) GetRecentlyPlayedGames(steamId uint, count uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *IPlayerService) GetSingleGamePlayTime(steamId uint, appId uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *IPlayerService) GetSteamLevel(steamId uint, ops ...RequestOption) (steam.CommonResponse, error)
- type ISteamApps
- func (i *ISteamApps) GetAppBeta(appId uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamApps) GetAppBuilds(buildsQueryOpt app.BuildsQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamApps) GetAppDepotVersion(appId uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamApps) GetAppList(ops ...RequestOption) (app.PublicAppList, error)
- func (i *ISteamApps) GetPartnerAppListForWebAPIKey(filter app.PartnerAppQueryFilter, ops ...RequestOption) (app.PartnerAppList, error)
- func (i *ISteamApps) GetPlayersBanned(appId uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamApps) GetServerList(filter app.ServerListQueryFilter, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamApps) GetServersAtAddress(addr string, ops ...RequestOption) (app.ServerAddressList, error)
- func (i *ISteamApps) SetAppBuildLive(updateOption app.BuildLiveUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamApps) UpToDateCheck(opt app.UpToDateCheckQueryOption, ops ...RequestOption) (app.UpToDateCheck, error)
- type ISteamBroadcastService
- type ISteamCommunity
- type ISteamGameServerStats
- type ISteamLeaderBoards
- func (i *ISteamLeaderBoards) DeleteLeaderBoard(deleteOpt leaderboard.DeleteOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamLeaderBoards) FindOrCreateLeaderboard(createOpt leaderboard.CreateOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamLeaderBoards) GetLeaderboardEntries(entryOpt leaderboard.EntriesQueryOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamLeaderBoards) GetLeaderboardsForGame(appid uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamLeaderBoards) ResetLeaderboard(opt leaderboard.ResetOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamLeaderBoards) SetLeaderboardScore(opt leaderboard.ScoreSetOpt, ops ...RequestOption) (steam.CommonResponse, error)
- type ISteamNews
- type ISteamPublishedFileService
- func (i *ISteamPublishedFileService) QueryFiles(queryFileOption publishedfile.FileQueryOption, ops ...RequestOption) (publishedfile.FileList, error)
- func (i *ISteamPublishedFileService) SetDeveloperMetaData(devSetOpt publishedfile.DeveloperMetaSetOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedFileService) UpdateBanStatus(banStatusUpdateOpt publishedfile.BanStatusUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedFileService) UpdateIncompatibleStatus(updateOpt publishedfile.IncompatibleStatusUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedFileService) UpdateTags(tagUpdateOpt publishedfile.TagUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedFileService) UpdateUGCBan(banUpdateOpt publishedfile.BanStatusUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
- type ISteamPublishedItemSearch
- func (i *ISteamPublishedItemSearch) RankedByPublicationOrder(rankOpt publisheditem.RankOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedItemSearch) RankedByTrend(rankOpt publisheditem.RankOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedItemSearch) RankedByVote(rankOpt publisheditem.RankOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamPublishedItemSearch) ResultSetSummary(rankOpt publisheditem.RankSummaryOption, ops ...RequestOption) (steam.CommonResponse, error)
- type ISteamPublishedItemVoting
- type ISteamRemoteStorage
- func (i *ISteamRemoteStorage) EnumerateUserSubscribedFiles(enum remotestorage.EnumerateOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamRemoteStorage) GetCollectionDetails(query remotestorage.CollectionDetailQueryOpt, ops ...RequestOption) (remotestorage.CollectionDetail, error)
- func (i *ISteamRemoteStorage) GetPublishedFileDetails(query remotestorage.PublishedFileDetailQueryOpt, ops ...RequestOption) (remotestorage.PublishedFileDetail, error)
- func (i *ISteamRemoteStorage) GetUGCFileDetails(query remotestorage.UgcFileDetailQueryOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamRemoteStorage) SetUGCUsedByGC(ugc remotestorage.UgcFileUpdateOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamRemoteStorage) SubscribePublishedFile(sub remotestorage.SubscribePublishedFileOpt, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamRemoteStorage) UnSubscribePublishedFile(unsub remotestorage.UnSubscribePublishedFileOpt, ops ...RequestOption) (steam.CommonResponse, error)
- type ISteamUser
- func (i *ISteamUser) CheckAppOwnership(ids steam.SteamAppId, ops ...RequestOption) (user.AppOwnershipList, error)
- func (i *ISteamUser) GetAppPriceInfo(steamId uint, appIds string, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamUser) GetDeletedSteamIds(rowVersion uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamUser) GetFriendList(relation user.FriendListQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamUser) GetPlayerBans(steamids string, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamUser) GetPlayerSummaries(steamids string, ops ...RequestOption) (user.PlayerSummaryList, error)
- func (i *ISteamUser) GetPublisherAppOwnership(steamId uint, ops ...RequestOption) (user.PublisherAppOwnershipList, error)
- func (i *ISteamUser) GetPublisherAppOwnershipChanges(chaneQueryOption user.PublisherAppOwnershipChangeQueryOption, ...) (user.AppOwnershipChanges, error)
- func (i *ISteamUser) GetUserGroupList(steamId uint, ops ...RequestOption) (steam.CommonResponse, error)
- func (i *ISteamUser) ResolveVanityURL(urlResolve user.ResolveVanityUrlQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
- type ISteamUserAuth
- type ISteamWebAPIUtil
- type Request
- type RequestOption
- func WithAPIKey(key string) RequestOption
- func WithBody(body any) RequestOption
- func WithFormData(formdata any) RequestOption
- func WithHeader(header http.Header) RequestOption
- func WithHost(host string) RequestOption
- func WithInputJson(input any) RequestOption
- func WithLanguage(language string) RequestOption
- func WithMethod(method string) RequestOption
- func WithQueryForm(query any) RequestOption
- func WithQueryMap(query map[string]any) RequestOption
- func WithRequest(fn func(r *resty.Request)) RequestOption
- func WithURL(url string) RequestOption
Constants ¶
const ( NopKey = "nop-key" EmptyKey = "" QuerySteamApiKey = "key" QueryLanguage = "language" )
const ( // PublicHost is the public steam server, you can interact with you own normal key PublicHost = "api.steampowered.com" // PartnerHost is the partner steam server, you should take your publisher api key in query parameters in any case PartnerHost = "partner.steam-api.com" // InputJson service interface need "input_json" query parameter to pass post params InputJson = "input_json" )
Variables ¶
var (
ApiKeyNotExistErr = errors.New("steam api key must be provided")
)
var (
PartnerEnforceHttpsErr = errors.New("partner.steam-api.com must be requested with https")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client steam api client, interact with steam api server
func New ¶
New func create a new Client only with api key which must be provided, if you just want to access some interface which does not need api key you can pass the NopKey
func NewWith ¶
func NewWith(options ...ClientOption) (*Client, error)
func (*Client) Get ¶
func (c *Client) Get(host, url string, resultPtr any, opts ...RequestOption) (*resty.Response, error)
func (*Client) IPlayerService ¶
func (c *Client) IPlayerService() *IPlayerService
func (*Client) IPublishedFileService ¶
func (c *Client) IPublishedFileService() *ISteamPublishedFileService
func (*Client) ISteamApps ¶
func (c *Client) ISteamApps() *ISteamApps
func (*Client) ISteamBroadcastService ¶
func (c *Client) ISteamBroadcastService() *ISteamBroadcastService
func (*Client) ISteamCommunity ¶
func (c *Client) ISteamCommunity() *ISteamCommunity
func (*Client) ISteamGameServerStats ¶
func (c *Client) ISteamGameServerStats() *ISteamGameServerStats
func (*Client) ISteamLeaderBoards ¶
func (c *Client) ISteamLeaderBoards() *ISteamLeaderBoards
func (*Client) ISteamNews ¶
func (c *Client) ISteamNews() *ISteamNews
func (*Client) ISteamPublishedItemVoting ¶
func (c *Client) ISteamPublishedItemVoting() *ISteamPublishedItemVoting
func (*Client) ISteamPublishedSearch ¶
func (c *Client) ISteamPublishedSearch() *ISteamPublishedItemSearch
func (*Client) ISteamRemoteStorage ¶
func (c *Client) ISteamRemoteStorage() *ISteamRemoteStorage
func (*Client) ISteamUser ¶
func (c *Client) ISteamUser() *ISteamUser
ISteamUser see https://partner.steamgames.com/doc/webapi/ISteamUser
func (*Client) ISteamUserAuth ¶
func (c *Client) ISteamUserAuth() *ISteamUserAuth
func (*Client) ISteamWebAPIUtil ¶
func (c *Client) ISteamWebAPIUtil() *ISteamWebAPIUtil
func (*Client) NewRequest ¶
func (c *Client) NewRequest(method, host, url string, options ...RequestOption) *Request
NewRequest creates a new request, you can use options to customize request configuration
func (*Client) Post ¶
func (c *Client) Post(host, url string, resultPtr any, opts ...RequestOption) (*resty.Response, error)
func (*Client) SendRequest ¶
func (c *Client) SendRequest(method, host, url string, resultPtr any, opts ...RequestOption) (*resty.Response, error)
SendRequest this is a helper func to send a request, resultPtr must be a pointer.
func (*Client) Unknown ¶
func (c *Client) Unknown(method, host, url string, opts ...RequestOption) (steam.CommonResponse, error)
Unknown some interfaces response are unknown, so return steam.CommonResponse that is alias of map[string]any
type ClientOption ¶
type ClientOption func(client *Client)
func WithClientKey ¶
func WithClientKey(key string) ClientOption
func WithClientResty ¶
func WithClientResty(client *resty.Client) ClientOption
func WithHttpsClient ¶
func WithHttpsClient() ClientOption
type IPlayerService ¶
type IPlayerService struct {
// contains filtered or unexported fields
}
IPlayerService see https://partner.steamgames.com/doc/webapi/IPlayerService
func (*IPlayerService) GetBadges ¶
func (i *IPlayerService) GetBadges(steamId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetBadges see https://partner.steamgames.com/doc/webapi/IPlayerService#GetBadges
func (*IPlayerService) GetCommunityBadgeProgress ¶
func (i *IPlayerService) GetCommunityBadgeProgress(steamId uint, badgeId int, ops ...RequestOption) (steam.CommonResponse, error)
GetCommunityBadgeProgress see https://partner.steamgames.com/doc/webapi/IPlayerService#GetCommunityBadgeProgress
func (*IPlayerService) GetOwnedGames ¶
func (i *IPlayerService) GetOwnedGames(ownGameOpt player.OwnedGamesQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
GetOwnedGames see https://partner.steamgames.com/doc/webapi/IPlayerService#GetOwnedGames
func (*IPlayerService) GetRecentlyPlayedGames ¶
func (i *IPlayerService) GetRecentlyPlayedGames(steamId uint, count uint, ops ...RequestOption) (steam.CommonResponse, error)
GetRecentlyPlayedGames see https://partner.steamgames.com/doc/webapi/IPlayerService#GetRecentlyPlayedGames
func (*IPlayerService) GetSingleGamePlayTime ¶
func (i *IPlayerService) GetSingleGamePlayTime(steamId uint, appId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetSingleGamePlayTime see https://partner.steamgames.com/doc/webapi/IPlayerService#GetSingleGamePlaytime
func (*IPlayerService) GetSteamLevel ¶
func (i *IPlayerService) GetSteamLevel(steamId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetSteamLevel see https://partner.steamgames.com/doc/webapi/IPlayerService#GetSteamLevel
type ISteamApps ¶
type ISteamApps struct {
// contains filtered or unexported fields
}
ISteamApps see https://partner.steamgames.com/doc/webapi/ISteamApps
func (*ISteamApps) GetAppBeta ¶
func (i *ISteamApps) GetAppBeta(appId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetAppBeta see https://partner.steamgames.com/doc/webapi/ISteamApps#GetAppBeta
func (*ISteamApps) GetAppBuilds ¶
func (i *ISteamApps) GetAppBuilds(buildsQueryOpt app.BuildsQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
GetAppBuilds see https://partner.steamgames.com/doc/webapi/ISteamApps#GetAppBuilds
func (*ISteamApps) GetAppDepotVersion ¶
func (i *ISteamApps) GetAppDepotVersion(appId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetAppDepotVersion see https://partner.steamgames.com/doc/webapi/ISteamApps#GetAppDepotVersion
func (*ISteamApps) GetAppList ¶
func (i *ISteamApps) GetAppList(ops ...RequestOption) (app.PublicAppList, error)
GetAppList see https://partner.steamgames.com/doc/webapi/ISteamApps#GetAppList
func (*ISteamApps) GetPartnerAppListForWebAPIKey ¶
func (i *ISteamApps) GetPartnerAppListForWebAPIKey(filter app.PartnerAppQueryFilter, ops ...RequestOption) (app.PartnerAppList, error)
GetPartnerAppListForWebAPIKey see https://partner.steamgames.com/doc/webapi/ISteamApps#GetPartnerAppListForWebAPIKey
func (*ISteamApps) GetPlayersBanned ¶
func (i *ISteamApps) GetPlayersBanned(appId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetPlayersBanned see https://partner.steamgames.com/doc/webapi/ISteamApps#GetPlayersBanned
func (*ISteamApps) GetServerList ¶
func (i *ISteamApps) GetServerList(filter app.ServerListQueryFilter, ops ...RequestOption) (steam.CommonResponse, error)
GetServerList see https://partner.steamgames.com/doc/webapi/ISteamApps#GetServerList
func (*ISteamApps) GetServersAtAddress ¶
func (i *ISteamApps) GetServersAtAddress(addr string, ops ...RequestOption) (app.ServerAddressList, error)
GetServersAtAddress see https://partner.steamgames.com/doc/webapi/ISteamApps#GetServersAtAddress
func (*ISteamApps) SetAppBuildLive ¶
func (i *ISteamApps) SetAppBuildLive(updateOption app.BuildLiveUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
SetAppBuildLive see https://partner.steamgames.com/doc/webapi/ISteamApps#SetAppBuildLive
func (*ISteamApps) UpToDateCheck ¶
func (i *ISteamApps) UpToDateCheck(opt app.UpToDateCheckQueryOption, ops ...RequestOption) (app.UpToDateCheck, error)
UpToDateCheck see https://partner.steamgames.com/doc/webapi/ISteamApps#UpToDateCheck
type ISteamBroadcastService ¶
type ISteamBroadcastService struct {
// contains filtered or unexported fields
}
ISteamBroadcastService see https://partner.steamgames.com/doc/webapi/IBroadcastService
func (*ISteamBroadcastService) PostGameDataFrame ¶
func (i *ISteamBroadcastService) PostGameDataFrame(frame boradcast.DataFrame, ops ...RequestOption) (steam.CommonResponse, error)
PostGameDataFrame see https://partner.steamgames.com/doc/webapi/IBroadcastService#PostGameDataFrame
type ISteamCommunity ¶
type ISteamCommunity struct {
// contains filtered or unexported fields
}
ISteamCommunity see https://partner.steamgames.com/doc/webapi/ISteamCommunity
func (*ISteamCommunity) ReportAbuse ¶
func (i *ISteamCommunity) ReportAbuse(form community.ReportAbuseForm, ops ...RequestOption) (steam.CommonResponse, error)
ReportAbuse see https://partner.steamgames.com/doc/webapi/ISteamCommunity#ReportAbuse
type ISteamGameServerStats ¶
type ISteamGameServerStats struct {
// contains filtered or unexported fields
}
ISteamGameServerStats see https://partner.steamgames.com/doc/webapi/ISteamGameServerStats
func (*ISteamGameServerStats) GetGameServerPlayerStatsForGame ¶
func (i *ISteamGameServerStats) GetGameServerPlayerStatsForGame(query gameserver.GameStatQueryOpt, ops ...RequestOption) (steam.CommonResponse, error)
GetGameServerPlayerStatsForGame see https://partner.steamgames.com/doc/webapi/ISteamGameServerStats#GetGameServerPlayerStatsForGame
type ISteamLeaderBoards ¶
type ISteamLeaderBoards struct {
// contains filtered or unexported fields
}
ISteamLeaderBoards see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards
func (*ISteamLeaderBoards) DeleteLeaderBoard ¶
func (i *ISteamLeaderBoards) DeleteLeaderBoard(deleteOpt leaderboard.DeleteOpt, ops ...RequestOption) (steam.CommonResponse, error)
DeleteLeaderBoard see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards#DeleteLeaderBoard
func (*ISteamLeaderBoards) FindOrCreateLeaderboard ¶
func (i *ISteamLeaderBoards) FindOrCreateLeaderboard(createOpt leaderboard.CreateOpt, ops ...RequestOption) (steam.CommonResponse, error)
FindOrCreateLeaderboard see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards#FindOrCreateLeaderboard
func (*ISteamLeaderBoards) GetLeaderboardEntries ¶
func (i *ISteamLeaderBoards) GetLeaderboardEntries(entryOpt leaderboard.EntriesQueryOpt, ops ...RequestOption) (steam.CommonResponse, error)
GetLeaderboardEntries see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards#GetLeaderboardEntries
func (*ISteamLeaderBoards) GetLeaderboardsForGame ¶
func (i *ISteamLeaderBoards) GetLeaderboardsForGame(appid uint, ops ...RequestOption) (steam.CommonResponse, error)
GetLeaderboardsForGame see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards#GetLeaderboardsForGame
func (*ISteamLeaderBoards) ResetLeaderboard ¶
func (i *ISteamLeaderBoards) ResetLeaderboard(opt leaderboard.ResetOpt, ops ...RequestOption) (steam.CommonResponse, error)
ResetLeaderboard see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards#ResetLeaderboard
func (*ISteamLeaderBoards) SetLeaderboardScore ¶
func (i *ISteamLeaderBoards) SetLeaderboardScore(opt leaderboard.ScoreSetOpt, ops ...RequestOption) (steam.CommonResponse, error)
SetLeaderboardScore see https://partner.steamgames.com/doc/webapi/ISteamLeaderboards#SetLeaderboardScore
type ISteamNews ¶
type ISteamNews struct {
// contains filtered or unexported fields
}
func (*ISteamNews) GetNewsForApp ¶
func (i *ISteamNews) GetNewsForApp(query news.AppNewsQueryOption, ops ...RequestOption) (news.AppNewsList, error)
GetNewsForApp see https://partner.steamgames.com/doc/webapi/ISteamNews#GetNewsForApp
func (*ISteamNews) GetNewsForAppAuthed ¶
func (i *ISteamNews) GetNewsForAppAuthed(query news.AppNewsQueryOption, ops ...RequestOption) (news.AppNewsList, error)
GetNewsForAppAuthed see https://partner.steamgames.com/doc/webapi/ISteamNews#GetNewsForAppAuthed
type ISteamPublishedFileService ¶
type ISteamPublishedFileService struct {
// contains filtered or unexported fields
}
func (*ISteamPublishedFileService) QueryFiles ¶
func (i *ISteamPublishedFileService) QueryFiles(queryFileOption publishedfile.FileQueryOption, ops ...RequestOption) (publishedfile.FileList, error)
QueryFiles see https://partner.steamgames.com/doc/webapi/IPublishedFileService#QueryFiles
func (*ISteamPublishedFileService) SetDeveloperMetaData ¶
func (i *ISteamPublishedFileService) SetDeveloperMetaData(devSetOpt publishedfile.DeveloperMetaSetOption, ops ...RequestOption) (steam.CommonResponse, error)
SetDeveloperMetaData see https://partner.steamgames.com/doc/webapi/IPublishedFileService#SetDeveloperMetadata
func (*ISteamPublishedFileService) UpdateBanStatus ¶
func (i *ISteamPublishedFileService) UpdateBanStatus(banStatusUpdateOpt publishedfile.BanStatusUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
UpdateBanStatus see https://partner.steamgames.com/doc/webapi/IPublishedFileService#UpdateBanStatus
func (*ISteamPublishedFileService) UpdateIncompatibleStatus ¶
func (i *ISteamPublishedFileService) UpdateIncompatibleStatus(updateOpt publishedfile.IncompatibleStatusUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
UpdateIncompatibleStatus see https://partner.steamgames.com/doc/webapi/IPublishedFileService#UpdateIncompatibleStatus
func (*ISteamPublishedFileService) UpdateTags ¶
func (i *ISteamPublishedFileService) UpdateTags(tagUpdateOpt publishedfile.TagUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
UpdateTags see https://partner.steamgames.com/doc/webapi/IPublishedFileService#UpdateTags
func (*ISteamPublishedFileService) UpdateUGCBan ¶
func (i *ISteamPublishedFileService) UpdateUGCBan(banUpdateOpt publishedfile.BanStatusUpdateOption, ops ...RequestOption) (steam.CommonResponse, error)
UpdateUGCBan see https://partner.steamgames.com/doc/webapi/IPublishedFileService#UpdateUGCBan
type ISteamPublishedItemSearch ¶
type ISteamPublishedItemSearch struct {
// contains filtered or unexported fields
}
ISteamPublishedItemSearch see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemSearch
func (*ISteamPublishedItemSearch) RankedByPublicationOrder ¶
func (i *ISteamPublishedItemSearch) RankedByPublicationOrder(rankOpt publisheditem.RankOption, ops ...RequestOption) (steam.CommonResponse, error)
RankedByPublicationOrder see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemSearch#RankedByPublicationOrder
func (*ISteamPublishedItemSearch) RankedByTrend ¶
func (i *ISteamPublishedItemSearch) RankedByTrend(rankOpt publisheditem.RankOption, ops ...RequestOption) (steam.CommonResponse, error)
RankedByTrend see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemSearch#RankedByTrend
func (*ISteamPublishedItemSearch) RankedByVote ¶
func (i *ISteamPublishedItemSearch) RankedByVote(rankOpt publisheditem.RankOption, ops ...RequestOption) (steam.CommonResponse, error)
RankedByVote see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemSearch#RankedByVote
func (*ISteamPublishedItemSearch) ResultSetSummary ¶
func (i *ISteamPublishedItemSearch) ResultSetSummary(rankOpt publisheditem.RankSummaryOption, ops ...RequestOption) (steam.CommonResponse, error)
ResultSetSummary see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemSearch#ResultSetSummary
type ISteamPublishedItemVoting ¶
type ISteamPublishedItemVoting struct {
// contains filtered or unexported fields
}
ISteamPublishedItemVoting see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemVoting
func (*ISteamPublishedItemVoting) ItemVoteSummary ¶
func (i *ISteamPublishedItemVoting) ItemVoteSummary(voteOpt publisheditem.ItemVoteOption, ops ...RequestOption) (steam.CommonResponse, error)
ItemVoteSummary see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemVoting#ItemVoteSummary
func (*ISteamPublishedItemVoting) UserVoteSummary ¶
func (i *ISteamPublishedItemVoting) UserVoteSummary(voteOpt publisheditem.UserVoteOption, ops ...RequestOption) (steam.CommonResponse, error)
UserVoteSummary see https://partner.steamgames.com/doc/webapi/ISteamPublishedItemVoting#UserVoteSummary
type ISteamRemoteStorage ¶
type ISteamRemoteStorage struct {
// contains filtered or unexported fields
}
ISteamRemoteStorage see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage
func (*ISteamRemoteStorage) EnumerateUserSubscribedFiles ¶
func (i *ISteamRemoteStorage) EnumerateUserSubscribedFiles(enum remotestorage.EnumerateOpt, ops ...RequestOption) (steam.CommonResponse, error)
EnumerateUserSubscribedFiles see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#EnumerateUserSubscribedFiles
func (*ISteamRemoteStorage) GetCollectionDetails ¶
func (i *ISteamRemoteStorage) GetCollectionDetails(query remotestorage.CollectionDetailQueryOpt, ops ...RequestOption) (remotestorage.CollectionDetail, error)
GetCollectionDetails see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#GetCollectionDetails
func (*ISteamRemoteStorage) GetPublishedFileDetails ¶
func (i *ISteamRemoteStorage) GetPublishedFileDetails(query remotestorage.PublishedFileDetailQueryOpt, ops ...RequestOption) (remotestorage.PublishedFileDetail, error)
GetPublishedFileDetails see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#GetPublishedFileDetails
func (*ISteamRemoteStorage) GetUGCFileDetails ¶
func (i *ISteamRemoteStorage) GetUGCFileDetails(query remotestorage.UgcFileDetailQueryOpt, ops ...RequestOption) (steam.CommonResponse, error)
GetUGCFileDetails see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#GetUGCFileDetails
func (*ISteamRemoteStorage) SetUGCUsedByGC ¶
func (i *ISteamRemoteStorage) SetUGCUsedByGC(ugc remotestorage.UgcFileUpdateOpt, ops ...RequestOption) (steam.CommonResponse, error)
SetUGCUsedByGC see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#SetUGCUsedByGC
func (*ISteamRemoteStorage) SubscribePublishedFile ¶
func (i *ISteamRemoteStorage) SubscribePublishedFile(sub remotestorage.SubscribePublishedFileOpt, ops ...RequestOption) (steam.CommonResponse, error)
SubscribePublishedFile see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#SubscribePublishedFile
func (*ISteamRemoteStorage) UnSubscribePublishedFile ¶
func (i *ISteamRemoteStorage) UnSubscribePublishedFile(unsub remotestorage.UnSubscribePublishedFileOpt, ops ...RequestOption) (steam.CommonResponse, error)
UnSubscribePublishedFile see https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#UnSubscribePublishedFile
type ISteamUser ¶
type ISteamUser struct {
// contains filtered or unexported fields
}
func (*ISteamUser) CheckAppOwnership ¶
func (i *ISteamUser) CheckAppOwnership(ids steam.SteamAppId, ops ...RequestOption) (user.AppOwnershipList, error)
CheckAppOwnership see https://partner.steamgames.com/doc/webapi/ISteamUser#CheckAppOwnership
func (*ISteamUser) GetAppPriceInfo ¶
func (i *ISteamUser) GetAppPriceInfo(steamId uint, appIds string, ops ...RequestOption) (steam.CommonResponse, error)
GetAppPriceInfo see https://partner.steamgames.com/doc/webapi/ISteamUser#GetAppPriceInfo
func (*ISteamUser) GetDeletedSteamIds ¶
func (i *ISteamUser) GetDeletedSteamIds(rowVersion uint, ops ...RequestOption) (steam.CommonResponse, error)
GetDeletedSteamIds see https://partner.steamgames.com/doc/webapi/ISteamUser#GetDeletedSteamIds
func (*ISteamUser) GetFriendList ¶
func (i *ISteamUser) GetFriendList(relation user.FriendListQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
GetFriendList see https://partner.steamgames.com/doc/webapi/ISteamUser#GetFriendList
func (*ISteamUser) GetPlayerBans ¶
func (i *ISteamUser) GetPlayerBans(steamids string, ops ...RequestOption) (steam.CommonResponse, error)
GetPlayerBans see https://partner.steamgames.com/doc/webapi/ISteamUser#GetPlayerBans
func (*ISteamUser) GetPlayerSummaries ¶
func (i *ISteamUser) GetPlayerSummaries(steamids string, ops ...RequestOption) (user.PlayerSummaryList, error)
GetPlayerSummaries see https://partner.steamgames.com/doc/webapi/ISteamUser#GetPlayerSummaries
func (*ISteamUser) GetPublisherAppOwnership ¶
func (i *ISteamUser) GetPublisherAppOwnership(steamId uint, ops ...RequestOption) (user.PublisherAppOwnershipList, error)
GetPublisherAppOwnership see https://partner.steamgames.com/doc/webapi/ISteamUser#GetPublisherAppOwnership
func (*ISteamUser) GetPublisherAppOwnershipChanges ¶
func (i *ISteamUser) GetPublisherAppOwnershipChanges(chaneQueryOption user.PublisherAppOwnershipChangeQueryOption, ops ...RequestOption) (user.AppOwnershipChanges, error)
GetPublisherAppOwnershipChanges see https://partner.steamgames.com/doc/webapi/ISteamUser#GetPublisherAppOwnershipChanges
func (*ISteamUser) GetUserGroupList ¶
func (i *ISteamUser) GetUserGroupList(steamId uint, ops ...RequestOption) (steam.CommonResponse, error)
GetUserGroupList see https://partner.steamgames.com/doc/webapi/ISteamUser#GetUserGroupList
func (*ISteamUser) ResolveVanityURL ¶
func (i *ISteamUser) ResolveVanityURL(urlResolve user.ResolveVanityUrlQueryOption, ops ...RequestOption) (steam.CommonResponse, error)
ResolveVanityURL see https://partner.steamgames.com/doc/webapi/ISteamUser#ResolveVanityURL
type ISteamUserAuth ¶
type ISteamUserAuth struct {
// contains filtered or unexported fields
}
ISteamUserAuth see https://partner.steamgames.com/doc/webapi/ISteamUserAuth
func (*ISteamUserAuth) AuthenticateUser ¶
func (i *ISteamUserAuth) AuthenticateUser(authenticateOpt user.AuthenticateOpt, ops ...RequestOption) (steam.CommonResponse, error)
AuthenticateUser see https://partner.steamgames.com/doc/webapi/ISteamUserAuth#AuthenticateUser
func (*ISteamUserAuth) AuthenticateUserTicket ¶
func (i *ISteamUserAuth) AuthenticateUserTicket(ticketAuthenticateOpt user.TicketAuthenticateOpt, ops ...RequestOption) (steam.CommonResponse, error)
AuthenticateUserTicket see https://partner.steamgames.com/doc/webapi/ISteamUserAuth#AuthenticateUserTicket
type ISteamWebAPIUtil ¶
type ISteamWebAPIUtil struct {
// contains filtered or unexported fields
}
func (*ISteamWebAPIUtil) GetServerInfo ¶
func (i *ISteamWebAPIUtil) GetServerInfo(ops ...RequestOption) (webapiutil.ServerInfo, error)
GetServerInfo see https://partner.steamgames.com/doc/webapi/ISteamWebAPIUtil#GetServerInfo
func (*ISteamWebAPIUtil) GetSupportedAPIList ¶
func (i *ISteamWebAPIUtil) GetSupportedAPIList(ops ...RequestOption) (webapiutil.SteamApiList, error)
GetSupportedAPIList see https://partner.steamgames.com/doc/webapi/ISteamWebAPIUtil#GetSupportedAPIList
type Request ¶
type RequestOption ¶
type RequestOption func(request *Request)
RequestOption use options to override some request settings
func WithAPIKey ¶
func WithAPIKey(key string) RequestOption
func WithBody ¶
func WithBody(body any) RequestOption
func WithFormData ¶
func WithFormData(formdata any) RequestOption
func WithHeader ¶
func WithHeader(header http.Header) RequestOption
func WithHost ¶
func WithHost(host string) RequestOption
func WithInputJson ¶
func WithInputJson(input any) RequestOption
func WithLanguage ¶
func WithLanguage(language string) RequestOption
func WithMethod ¶
func WithMethod(method string) RequestOption
func WithQueryForm ¶
func WithQueryForm(query any) RequestOption
func WithQueryMap ¶
func WithQueryMap(query map[string]any) RequestOption
func WithRequest ¶
func WithRequest(fn func(r *resty.Request)) RequestOption
func WithURL ¶
func WithURL(url string) RequestOption