Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetPlayerSummaries adding %20 before first id #14

Open
felipecrrmts opened this issue Nov 15, 2024 · 1 comment
Open

GetPlayerSummaries adding %20 before first id #14

felipecrrmts opened this issue Nov 15, 2024 · 1 comment

Comments

@felipecrrmts
Copy link

Example:
GetPlayerSummaries([]uint64{76561198110650343}, "realkey")

is becoming this request:

https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=realkey&steamids=%2076561198110650343

@felipecrrmts
Copy link
Author

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)
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant