API Steam - 未找到帐户
API Steam - Account not found
当我尝试在 XML API Steam 中获取数据时,如何可能,来自 my account 作品:
但是如果我尝试从 another account 获取数据不起作用?
<response>
<error>
<![CDATA[ The specified profile could not be found. ]]>
</error>
</response>
另外,当用户名中有符号或space时,API怎么变成link?
用户没有与其个人资料关联的自定义 url "giogio993"。这意味着他有用户页面http://steamcommunity.com/profiles/76561198089474071 but it can't be accessed via link http://steamcommunity.com/id/giogio993 unlike your http://steamcommunity.com/id/Askancy
至于名称中的空格 - 我认为 Steam 不允许这样做。只需尝试更改您自己的名字,看看会发生什么。
更新
另外,你可以用steamrep查看这个账号:
http://steamrep.com/search?q=76561198089474071
如您所见,字段 "Custom URL" 是空的。
关于您的个人资料:
http://steamrep.com/search?q=Askancy
自定义 URL 没问题。
真正的问题是"how to get user info from account without vanity URL"。我还没有找到这个问题的答案。
很简单 -- no account using this vanity URL。这不是任何类型的错误。
when a user has got a symbols or space in the name, how become the link for API?
虚网址只能包含字母数字字符(可能还有下划线),因此您无需担心特殊字符。您还可以通过 the /profiles/ URL 访问与社区 ID 相关联的用户 XML,这可能比可变虚 URL 更可取。
当我尝试在 XML API Steam 中获取数据时,如何可能,来自 my account 作品: 但是如果我尝试从 another account 获取数据不起作用?
<response>
<error>
<![CDATA[ The specified profile could not be found. ]]>
</error>
</response>
另外,当用户名中有符号或space时,API怎么变成link?
用户没有与其个人资料关联的自定义 url "giogio993"。这意味着他有用户页面http://steamcommunity.com/profiles/76561198089474071 but it can't be accessed via link http://steamcommunity.com/id/giogio993 unlike your http://steamcommunity.com/id/Askancy
至于名称中的空格 - 我认为 Steam 不允许这样做。只需尝试更改您自己的名字,看看会发生什么。
更新
另外,你可以用steamrep查看这个账号: http://steamrep.com/search?q=76561198089474071
如您所见,字段 "Custom URL" 是空的。
关于您的个人资料: http://steamrep.com/search?q=Askancy
自定义 URL 没问题。 真正的问题是"how to get user info from account without vanity URL"。我还没有找到这个问题的答案。
很简单 -- no account using this vanity URL。这不是任何类型的错误。
when a user has got a symbols or space in the name, how become the link for API?
虚网址只能包含字母数字字符(可能还有下划线),因此您无需担心特殊字符。您还可以通过 the /profiles/ URL 访问与社区 ID 相关联的用户 XML,这可能比可变虚 URL 更可取。