Steam API - 如何解码位置代码

时间:2021-11-08 16:59:25

Good day! Users of our site signups by steam OpenId, and when app gets their person info in JSON. An information about user location is provided as set of ISO(?) codes, like this: "loccountrycode": "RU", "locstatecode": "47", "loccityid": 41795. Steam API is wery badly documented, so i can't find any method to decode this to a string. Is there a some method in Steam API to do this, and if not, are there any convinient web-api's to do this? We use nodejs. Thanks!

美好的一天!我们网站的用户通过Steam OpenId注册,以及当app以JSON获取他们的人员信息时。有关用户位置的信息以ISO(?)代码的形式提供,如下所示:“loccountrycode”:“RU”,“locstatecode”:“47”,“loccityid”:41795。Steam API很难记录,所以我找不到任何方法将其解码为字符串。 Steam API中是否有一些方法可以执行此操作,如果没有,是否有任何方便的web-api可以执行此操作?我们使用nodejs。谢谢!

1 个解决方案

#1


0  

Resolved, just wanted to share. https://github.com/Holek/steam-friends-countries

解决了,只是想分享。 https://github.com/Holek/steam-friends-countries

#1


0  

Resolved, just wanted to share. https://github.com/Holek/steam-friends-countries

解决了,只是想分享。 https://github.com/Holek/steam-friends-countries