加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 用户昵称获取steamID

发布时间:2020-12-13 18:03:14 所属栏目:PHP教程 来源:网络整理
导读:是否有可能通过他的昵称获得用户的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 th
是否有可能通过他的昵称获得用户的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.

但是现在GetMatchHistory函数没有player_name参数.现在它需要account_id.

那么像http://dotabuff.com/search?q=Dendi这样的网站如何获得这些信息呢?

您可以使用

获得http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/

从Steam配置文件的自定义URL获取SteamID.见http://wiki.teamfortress.com/wiki/WebAPI/ResolveVanityURL

您无法从某人的当前昵称获取steamID,因为昵称可能会更改并且不是唯一的.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读