ActiveCampaign Custom API Script: Use SSO to link users to ActiveCampaign (bypassing the login), or embed as an iFrame.
Requirements
- Our PHP API library
- A web server where you can run PHP code
Installation and Usage
You can install example-sso_embed by downloading (or cloning) the source.
Input your ActiveCampaign URL and API Key at the top. Example below:
$api_url = "https://ACCOUNT.api-us1.com"; $api_key = "4f3c6d12f0.....00ca273778dc893";
Also add values for the SSO variables at the top. Example below:
$sso_ip_address = "127.0.0.1"; $sso_username = "user1"; // can also use email address here $sso_duration = "30";
Make sure the path to the PHP library is correct:
require_once("../../activecampaign-api-php/includes/ActiveCampaign.class.php");
Refresh the page and you should see a link to ActiveCampaign, and an iFrame showing ActiveCampaign:
Documentation and Links
Reporting Issues
We'd love to help if you have questions or problems. Report issues using the Github Issue Tracker or email [email protected].