怎么可能读取特定项目的数量?例如:这个 id 有多少项目可用?:927007517
代码:
<?php
$content = file_get_contents('http://steamcommunity.com/profiles/76561198131798299/inventory/json/730/2');
$result = json_decode($content);
if($result->success !== true) {
echo 'Nicht erfolgreich! :(';
return;
}
foreach($result->rgInventory AS $item) {
echo $item->classid.'<br />';
}
?>
输出:http ://csgo.square7.ch/csgo-master/api.php
谢谢你。最诚挚的问候