Last active
December 21, 2020 18:39
-
-
Save berkocan/bf3424f74d83a3e4098ea3692820c431 to your computer and use it in GitHub Desktop.
Günlük Korona Verileri (Api) Json Kodu | Korona Api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gorgeus work. Clean data. Good luck.