Last active
October 31, 2022 20:28
-
-
Save berkocan/680ace0f650653369b472fbca61833ba to your computer and use it in GitHub Desktop.
Para Birimleri (Api) Json Kodu
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
Para birimlerini 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/para-birimleri.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>BIST 100</span> | |
<span>Fiyat: <?php echo $JSON['XU100']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['XU100']['degisim']; ?></span> | |
</li> | |
<li> | |
<span>DOLAR</span> | |
<span>Fiyat: <?php echo $JSON['USD']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['USD']['degisim']; ?></span> | |
</li> | |
<li> | |
<span>EURO</span> | |
<span>Fiyat: <?php echo $JSON['EUR']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['EUR']['degisim']; ?></span> | |
</li> | |
<li> | |
<span>BITCOIN</span> | |
<span>Fiyat: <?php echo $JSON['BTC']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['BTC']['degisim']; ?></span> | |
</li> | |
<li> | |
<span>ALTIN</span> | |
<span>Fiyat: <?php echo $JSON['GA']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['GA']['degisim']; ?></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