Mat*_*as_ 8 json steam-web-api steam
好吧,所以我一直在互联网上寻找这个,我发现的是,当你想得到某人蒸汽库存时,你使用这个:
http://api.steampowered.com/IEconItems_{appid}/GetPlayerItems/v0001/?key={apikey}&steamid={steamid}&format=json
Run Code Online (Sandbox Code Playgroud)
但问题是,当我为CS:GO(appid :)执行此操作时730,即使用户的库存中有项目,我也只会得到一个空响应.
Mic*_* J. 15
如果你想获得json只需使用以下链接之一:
一般蒸汽库存:(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
Run Code Online (Sandbox Code Playgroud)
游戏:
http://steamcommunity.com/id/<USERURL>/inventory/json/<APPID>/2
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/<APPID>/2
Run Code Online (Sandbox Code Playgroud)
问题不在于反击appid,你只是使用了一个只适用于一般蒸汽库存的旧链接.我建议您使用STEAMID链接,因为不是每个蒸汽用户都设置了自定义.
| 归档时间: |
|
| 查看次数: |
23682 次 |
| 最近记录: |