是否有可能通过他的昵称获得用户的steamID?我没有在steam API文档中找到解决方案.我找到的唯一一件事是
http://dev.dota2.com上的旧帖子:
You can use this to search the Dota2 API directly using the player_name option of GetMatchHistory
You can then find their 32-bit ID in the list and then convert it to a 64-bit ID.@H_502_4@
但是现在GetMatchHistory函数没有player_name参数.现在它需要account_id.@H_502_4@
那么像http://dotabuff.com/search?q=Dendi这样的网站如何获得这些信息呢?@H_502_4@
您可以使用
获得http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/@H_502_4@
从Steam配置文件的自定义URL获取SteamID.见http://wiki.teamfortress.com/wiki/WebAPI/ResolveVanityURL@H_502_4@