PHP code example of clockworkmarketing / email-marketing-brilliance-php-api
1. Go to this page and download the library: Download clockworkmarketing/email-marketing-brilliance-php-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/ */
clockworkmarketing / email-marketing-brilliance-php-api example snippets
php
use ClockworkMarketing\EmailMarketingBrilliance\EmailMarketingBrilliance;
$response = $emb = EmailMarketingBrilliance::setAuthDetails('API_ID', 'API_KEY')
->call(
'GET',
'/users/details',
['email_address'=>'[email protected]']
);
// OR //
$emb = new EmailMarketingBrilliance('API_ID', 'API_KEY');
$response = $emb->call(
'GET',
'/users/details',
['email_address'=>'[email protected]']
);