gpt4 book ai didi

php - 通过用户昵称获取steamID

转载 作者:可可西里 更新时间:2023-11-01 12:34:58 25 4
gpt4 key购买 nike

是否可以通过昵称获取用户的 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,因为昵称可以更改并且不是唯一的。

关于php - 通过用户昵称获取steamID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19247887/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com