Player API Embedding Examples
Embed music players directly on your pages using the Wildfire API.
Example 1: Embed an Album
To embed an album player, use the embedAlbum method with either a UID or URL:
By UID:
<?php
$api = new apiClass();
$api->callApi([
'engine' => 'player',
'method' => 'embedAlbum',
'id' => 'ALBUM_UID_HERE'
], false, true);
?>
By URL:
<?php
$api = new apiClass();
$api->callApi([
'engine' => 'player',
'method' => 'embedAlbum',
'url' => 'album-url-slug'
], false, true);
?>

