1

我一直在搞乱一些简化的 Steam API,但我没有得到太多。我需要一些帮助来检索用户的状态而无需用户登录(这是我想出的唯一方法)。

4

1 回答 1

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.

该文档还显示了公共/私人配置文件中可用的其他字段,可能值得一看。

于 2013-09-03T15:27:47.820 回答