PHP code example of ymbra / acrelianews-api

1. Go to this page and download the library: Download ymbra/acrelianews-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/ */

    

ymbra / acrelianews-api example snippets

 php
use Ymbra\Acrelianews\AcrelianewsContact;

$contactApi = new AcrelianewsContact('THE_API_KEY');

$listId = 1234;
$email = '[email protected]';

$response = $contactApi->getByEmail($listId,  $email);

echo json_decode($response)->email_address;