我必须检查用户的状态: - 在线的 - 离线 - 玩[游戏名称/游戏ID]
如何通过Steam Web API获取我需要的信息?
回应:
"players": [
{
"steamid": "...",
"communityvisibilitystate": 3,
"profilestate": 1,
"personaname": "...",
"lastlogoff": 1468736909,
"commentpermission": 1,
"profileurl": "http://steamcommunity.com/id/.../",
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/...jpg",
"avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/..._medium.jpg",
"avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/..._full.jpg",
"personastate": 1,
"primaryclanid": "...",
"timecreated": 1312034848,
"personastateflags": 0,
"gameextrainfo": "Counter-Strike: Global Offensive",
"gameid": "730",
"loccountrycode": "AU",
"locstatecode": "VIC",
"loccityid": 4990
}
]
角色:1 - 在线;
游戏额外信息:游戏;
gameid: 游戏ID。