PHP code example of vaalyn / azuracast-api-client
1. Go to this page and download the library: Download vaalyn/azuracast-api-client 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/ */
vaalyn / azuracast-api-client example snippets
= \AzuraCast\Api\Client::create(
'<IP-Address | Host>',
'<API Key>'
);
$nowPlaying = $api->nowPlaying();
echo $nowPlaying->getCurrentSong()->getSong()->getTitle();
bash
composer
$api->station($stationId)->history(?\DateTime $start = null, ?\DateTime $end = null);