我一直在搞乱一些简化的Steam API,但我没有得到太多。我想在没有用户登录的情况下帮助检索用户的状态(这是我弄清楚如何操作的唯一方法)。
答案 0 :(得分:2)
我假设您正在寻找用户的在线/离线状态。为此,您将使用此API调用:
http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=APIKEY&steamids=IDS YOU ARE LOOKING AT
此处的文档:GetPlayerSummaries
无论用户的隐私设置如何,您都会发现personastate
包含用户的状态。从文档
The user's current status. 0 - Offline, 1 - Online, 2 - Busy, 3 - Away, 4 - Snooze, 5 - looking to trade, 6 - looking to play. If the player's profile is private, this will always be "0", except is the user has set his status to looking to trade or looking to play, because a bug makes those status appear even if the profile is private.
该文档还显示了公共/私人资料中可用的其他字段,可能值得一看。