Skip to content

Ymbra/acrelianews-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acrelianews PHP API V2

PHP library that provides client functions for Acrelianews's REST API v2.

Acrelianews API docs

Requirements

Install

Via Composer

$ composer require ymbra/acrelianews-api

Example

Gets contact from list by email.

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;

Testing

$ vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

License

Please see License File for more information.