You can install activecampaign-api-php by downloading the source.
Click here to download the source (.zip) which includes all dependencies.
require_once("includes/ActiveCampaign.class.php");
Fill in your URL and API Key in the includes/config.php
file, and you are good to go!
define("ACTIVECAMPAIGN_URL", "YOUR ACTIVECAMPAIGN URL"); define("ACTIVECAMPAIGN_API_KEY", "YOUR ACTIVECAMPAIGN API KEY");
require_once("includes/ActiveCampaign.class.php"); $ac = new ActiveCampaign(ACTIVECAMPAIGN_URL, ACTIVECAMPAIGN_API_KEY); $account = $ac->api("account/view");
See our examples file for more in-depth samples.
- A valid ActiveCampaign hosted account (trial or paid).
Click here to view our full API documentation.
We'd love to help if you have questions or problems. Report issues using the Github Issue Tracker or email [email protected].