Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.3 KB

File metadata and controls

42 lines (24 loc) · 1.3 KB

Installation

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!

Example Usage

includes/config.php

define("ACTIVECAMPAIGN_URL", "YOUR ACTIVECAMPAIGN URL");
define("ACTIVECAMPAIGN_API_KEY", "YOUR ACTIVECAMPAIGN API KEY");

examples.php

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.

Prerequisites

  1. A valid ActiveCampaign hosted account (trial or paid).

Full Documentation

Click here to view our full API documentation.

Reporting Issues

We'd love to help if you have questions or problems. Report issues using the Github Issue Tracker or email support@activecampaign.com.