Establishing a Connection
The objects available within our connector are accessible from the "cdata.activecampaign" module. To use the module's objects directly:
- Import the module as follows:
import cdata.activecampaign as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("URL=yourUrl;APIKey=yourApiKey")
Connecting to ActiveCampaign
ActiveCampaign supports authenticating with the API Key. To connect to ActiveCampaign, in your account navigate to the Developer page and set the following:
- URL: Navigate to the My Settings page to set this property. For example: https://<yourAccountName>.api-us1.com
- APIKey: Navigate to the Settings page to set this property. Each user in your ActiveCampaign account has their own unique API key.
Make sure to distinguish between My Settings and Settings when setting these properties.