PHP code example of hanischit / kraken-api
1. Go to this page and download the library: Download hanischit/kraken-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hanischit / kraken-api example snippets
try {
$api = new \HanischIt\KrakenApi\KrakenApi("Your-API-Key", "Your-API-Sign");
$serverTimeResponse = $api->getServerTime();
echo "UnixTime: " . $serverTimeResponse->getUnixTime() . "\n";
echo "rfc1123: " . $serverTimeResponse->getRfc1123();
} catch (Exception $e) {
echo $e->getMessage();
}