Open felipecrrmts opened 1 week ago
the problem is in this bit:
var getPlayerSummaries = NewSteamMethod("ISteamUser", "GetPlayerSummaries", 2)
strIds := make([]string, len(ids))
for _, id := range ids {
strIds = append(strIds, strconv.FormatUint(id, 10))
}
should be:
var getPlayerSummaries = NewSteamMethod("ISteamUser", "GetPlayerSummaries", 2)
strIds := make([]string, len(ids))
for i, id := range ids {
strIds[i] = strconv.FormatUint(id, 10)
}
Example:
GetPlayerSummaries([]uint64{76561198110650343}, "realkey")
is becoming this request:
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=realkey&steamids=%2076561198110650343