Loading CHANGELOG.md +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ All notable changes to this project are documented below. The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org). ## [Unreleased] ### Changed - Use Steam partner API instead of public API for Steam profiles and friends requests. ### Fixed - Fixed multiple issues found by linter. Loading social/social.go +2 −2 Original line number Diff line number Diff line Loading @@ -276,7 +276,7 @@ func (c *Client) GetFacebookFriends(ctx context.Context, accessToken string) ([] func (c *Client) GetSteamFriends(ctx context.Context, publisherKey, steamId string) ([]SteamProfile, error) { c.logger.Debug("Getting Steam friends", zap.String("steamId", steamId)) path := fmt.Sprintf("https://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=%s&steamid=%s&relationship=friend", publisherKey, steamId) path := fmt.Sprintf("https://partner.steam-api.com/ISteamUser/GetFriendList/v0001/?key=%s&steamid=%s&relationship=friend", publisherKey, steamId) var steamFriends steamFriendsWrapper err := c.request(ctx, "steam friends", path, nil, &steamFriends) if err != nil { Loading Loading @@ -621,7 +621,7 @@ func (c *Client) CheckGameCenterID(ctx context.Context, playerID string, bundleI func (c *Client) GetSteamProfile(ctx context.Context, publisherKey string, appID int, ticket string) (*SteamProfile, error) { c.logger.Debug("Getting Steam profile", zap.String("publisherKey", publisherKey), zap.Int("appID", appID), zap.String("ticket", ticket)) path := "https://api.steampowered.com/ISteamUserAuth/AuthenticateUserTicket/v1/?format=json" + path := "https://partner.steam-api.com/ISteamUserAuth/AuthenticateUserTicket/v1/?format=json" + "&key=" + url.QueryEscape(publisherKey) + "&appid=" + strconv.Itoa(appID) + "&ticket=" + url.QueryEscape(ticket) var profileWrapper SteamProfileWrapper err := c.request(ctx, "steam profile", path, nil, &profileWrapper) Loading Loading
CHANGELOG.md +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ All notable changes to this project are documented below. The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org). ## [Unreleased] ### Changed - Use Steam partner API instead of public API for Steam profiles and friends requests. ### Fixed - Fixed multiple issues found by linter. Loading
social/social.go +2 −2 Original line number Diff line number Diff line Loading @@ -276,7 +276,7 @@ func (c *Client) GetFacebookFriends(ctx context.Context, accessToken string) ([] func (c *Client) GetSteamFriends(ctx context.Context, publisherKey, steamId string) ([]SteamProfile, error) { c.logger.Debug("Getting Steam friends", zap.String("steamId", steamId)) path := fmt.Sprintf("https://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=%s&steamid=%s&relationship=friend", publisherKey, steamId) path := fmt.Sprintf("https://partner.steam-api.com/ISteamUser/GetFriendList/v0001/?key=%s&steamid=%s&relationship=friend", publisherKey, steamId) var steamFriends steamFriendsWrapper err := c.request(ctx, "steam friends", path, nil, &steamFriends) if err != nil { Loading Loading @@ -621,7 +621,7 @@ func (c *Client) CheckGameCenterID(ctx context.Context, playerID string, bundleI func (c *Client) GetSteamProfile(ctx context.Context, publisherKey string, appID int, ticket string) (*SteamProfile, error) { c.logger.Debug("Getting Steam profile", zap.String("publisherKey", publisherKey), zap.Int("appID", appID), zap.String("ticket", ticket)) path := "https://api.steampowered.com/ISteamUserAuth/AuthenticateUserTicket/v1/?format=json" + path := "https://partner.steam-api.com/ISteamUserAuth/AuthenticateUserTicket/v1/?format=json" + "&key=" + url.QueryEscape(publisherKey) + "&appid=" + strconv.Itoa(appID) + "&ticket=" + url.QueryEscape(ticket) var profileWrapper SteamProfileWrapper err := c.request(ctx, "steam profile", path, nil, &profileWrapper) Loading