Merhabalar bu linki api olarak nasıl kullanabilirim ?.
http://api.worldoftanks.eu/2.0/account/list/?application_id=136a5258284567278e9152cf21783b1d&search=test0000
Bu Linki Api Olarak Nasıl Kullanabilirim? |
10 Mesajlar | 869 Okunma |
Kod:
$json=file_get_contents("http://api.worldoftanks.eu/2.0/account/list/?application_id=136a5258284567278e9152cf21783b1d&search=test0000");
$data=json_decode($json,true);
print_r($data);
?>
Çıktı:
Array ( [status] => ok [meta] => Array ( [count] => 4 ) [data] => Array ( [0] => Array ( [nickname] => Test0000 [account_id] => 513189413 ) [1] => Array ( [nickname] => test000000 [account_id] => 517503479 ) [2] => Array ( [nickname] => test000000001 [account_id] => 505217285 ) [3] => Array ( [nickname] => test000000f [account_id] => 519426815 ) ) )
$json=file_get_contents("http://api.worldoftanks.eu/2.0/account/list/?application_id=136a5258284567278e9152cf21783b1d&search=test0000");
$data=json_decode($json,true);
echo $data["data"]["1"]["nickname"] ;
?>