babelshift / SteamWebAPI2

🎮 C# / .NET library that makes it easy to use the Steam Web API. It conveniently wraps around all of the JSON data and ugly API details with clean methods, structures and classes.
MIT License
263 stars 43 forks source link

SteamId constructor fails if a numeric vanity ID is used #89

Closed slinkstr closed 4 years ago

slinkstr commented 4 years ago

In the case of https://steamcommunity.com/id/12345 and similar, the SteamId(string value, ISteamWebRequest steamWebRequest) constructor will attempt to parse it as as 64-bit Steam ID.

Would be better to check what uriResult.Segments[1] is and resolve based on that.

babelshift commented 4 years ago

@slinkayy thanks for this. I'll check it out today/tomorrow.