Created
October 12, 2022 08:29
-
-
Save rohasnagpal/dcec046406da515c4fbd85f895ebd0e9 to your computer and use it in GitHub Desktop.
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
<?php | |
//Requires libcurl | |
$curl = curl_init(); | |
curl_setopt_array($curl, [ | |
CURLOPT_HTTPHEADER => [ | |
"x-api-key: YOUR_API_KEY" | |
], | |
CURLOPT_URL => "https://api-eu1.tatum.io/v3/bitcoin/wallet", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_CUSTOMREQUEST => "GET", | |
]); | |
$response = curl_exec($curl); | |
$error = curl_error($curl); | |
curl_close($curl); | |
if ($error) { | |
echo "cURL Error #:" . $error; | |
} else { | |
echo $response; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment