PHP code example of inspirum / active-campaign-php
1. Go to this page and download the library: Download inspirum/active-campaign-php 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/ */
inspirum / active-campaign-php example snippets
$client = new Client(
$api_url,
$api_token,
$event_tracking_actid,
$event_tracking_key
);
$contact = $contacts->create([
'email' => 'CONTACT_EMAIL',
'firstName' => 'CONTACT_FIRST_NAME',
'lastName' => 'CONTACT_LAST_NAME'
]);
composer