Module activecampaign

ballerinax/activecampaign Ballerina library

1.3.1

Overview

This is a generated connector for ActiveCampaign API v3 OpenAPI specification.

ActiveCampaign is an integrated email marketing, automation, sales software, and CRM platform. It lets users perform powerful automation, email marketing, and customer relationship management.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the ActiveCampaign connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/activecampaign module into the Ballerina project.

Copy
import ballerinax/activecampaign;

Step 2: Create a new connector instance

You can now make the connection configuration using the <API_TOKEN>.

Copy
activecampaign:ApiKeysConfig apiKeyConfig = {
    apiToken:"<API_TOKEN>"
};

activecampaign:Client baseClient = check new (clientConfig);

Step 3: Invoke connector operation

Now you can use the operations available within the connector. Note that they are in the form of remote operations.

Following is an example to list contacts using the connector.

Copy
public function main() {
    activecampaign:AccountListResponse|error result = baseClient->listAccounts();
    if (result is activecampaign:AccountListResponse) {
        log:printInfo(result.toString());
    } else {
        log:printInfo(result.toString());
    }
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/activecampaign;Copy

Metadata

Released date: 12 months ago

Version: 1.3.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 1248

Current verison: 247


Weekly downloads


Source repository


Keywords

Marketing/Marketing Automation

Cost/Freemium


Contributors

Other versions