PHP code example of pouler / linkfire-api
1. Go to this page and download the library: Download pouler/linkfire-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/ */
pouler / linkfire-api example snippets
declare(strict_types=1);
use PouleR\LinkfireAPI\Entity\CampaignLink;
use PouleR\LinkfireAPI\LinkfireAPI;
use PouleR\LinkfireAPI\LinkfireAPIClient;
use Symfony\Component\HttpClient\CurlHttpClient;
et');
$linkfireAPI->setAccessToken($authenticatedToken->getAccessToken());
// Retrieve all mediaServices for a given board
$mediaServices = $linkfireAPI->getBoardMediaServices('board-id');
// Create a campaign link
$campaignLink = $api->createCampaignLink('board-id', [
'title' => 'Readme',
'baseUrl' => 'https://open.spotify.com/album/your-album-uri',
'domainId' => 'domain-id',
'artist' => 'PouleR',
'album' => 'Readme',
'mediaType' => 'Music',
]);