好的,我已经在互联网上到处找了,我发现当你想得到某人的steam清单时,你可以使用这个:
http://api.steampowered.com/IEconItems_{appid}/GetPlayerItems/v0001/?key={apikey}&steamid={steamid}&format=json
但问题是,当我对CS:GO (appid:730
)执行此操作时,即使用户的库存中有商品,我也只能得到一个空响应。
发布于 2014-09-24 15:29:19
如果您想获取json,只需使用以下链接之一:
普通steam盘点:( 1:游戏,3:优惠券,6:交易卡,7:奖励)
http://steamcommunity.com/id/<USERURL>/inventory/json/753/1
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/1
http://steamcommunity.com/id/<USERURL>/inventory/json/753/3
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/3
http://steamcommunity.com/id/<USERURL>/inventory/json/753/6
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/6
http://steamcommunity.com/id/<USERURL>/inventory/json/753/7
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/7
游戏:
http://steamcommunity.com/id/<USERURL>/inventory/json/<APPID>/2
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/<APPID>/2
问题不在于反罢工appid,您只是使用了一个旧链接,该链接仅适用于一般的steam清单。我建议您使用STEAMID链接,因为并不是每个蒸汽用户都设置了customurl。
https://stackoverflow.com/questions/25977803
复制相似问题