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
Döviz kurlarını 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/doviz.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>USD</span> | |
<span>Fiyat: <?php echo $JSON['USD']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['USD']['degisim']; ?></span> |
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
Altın fiyatlarını 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/altin.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>Gram Altın</span> | |
<span>Fiyat: <?php echo $JSON['GA']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['GA']['degisim']; ?></span> |
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
Kripto paraları 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/kripto.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>Bitcoin</span> | |
<span>Fiyat: <?php echo $JSON['BTC']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['BTC']['degisim']; ?></span> |
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
Hisse senetleri 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/borsa.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>AKBNK</span> | |
<span>Fiyat: <?php echo $JSON['AKBNK']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['AKBNK']['degisim']; ?></span> |
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
Kripto paraları 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/parite.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>EUR/USD</span> | |
<span>Fiyat: <?php echo $JSON['EUR/USD']['satis']; ?></span> | |
<span>Değişim: <?php echo $JSON['EUR/USD']['degisim']; ?></span> |
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> |
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
Hava durumunu 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/hava-durumu.json'), true); | |
?> | |
<ul> | |
<li> | |
<span>İstanbul</span> | |
<span>Hava: <?php echo $JSON['istanbul']['hava']; ?></span> | |
<span>Sıcaklık: <?php echo $JSON['istanbul']['sicaklik']; ?></span> |
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
/* eslint-disable react-hooks/exhaustive-deps */ | |
import { useEffect, useState } from "react"; | |
import axios, { Method } from "axios"; | |
/** | |
* https://github.com/ali-master/react-typescript-hooks-sample | |
*/ | |
const useFetch = ( | |
url: string, | |
method: Method, |