Skip to content

Instantly share code, notes, and snippets.

@berkocan
Last active December 21, 2020 18:39
Show Gist options
  • Save berkocan/bf3424f74d83a3e4098ea3692820c431 to your computer and use it in GitHub Desktop.
Save berkocan/bf3424f74d83a3e4098ea3692820c431 to your computer and use it in GitHub Desktop.
Günlük Korona Verileri (Api) Json Kodu | Korona Api
Günlük korona verilerini json ile api olarak sitenize eklemek için aşağıdaki kodları kullanabilirsiniz. ▼☟↓
<?php
$JSON = json_decode(file_get_contents('https://api.genelpara.com/embed/korona.json'), true);
?>
<ul>
<li>
<span>Korona</span>
<span>Tarih: <?php echo $JSON['korona']['tarih']; ?></span>
<span>Test: <?php echo $JSON['korona']['gunluk_test']; ?></span>
<span>Vaka: <?php echo $JSON['korona']['gunluk_vaka']; ?></span>
<span>Vefat: <?php echo $JSON['korona']['gunluk_vefat']; ?></span>
</li>
</ul>
GP. https://www.genelpara.com/api-kodu/
@returnednull
Copy link

Gorgeus work. Clean data. Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment