Forum Academy Marketplace Showcase Pricing Features

Plugin to integrate Email Marketing Services such as ActiveCampaign (Opt-in plugin)

hi @johnny thanks for making this plugin !

Prior to that i copied the token from my Active campaign account in :
image

I am having some trouble with the setup and the screenshots i see makes me doubt :
on the plugin page you say that you have to put your account name in each action :
in this format : https://example.api-us1.com

but in the screenshot @B4B doesn’t put an url format (or maybe did he just edit the image ?)

when i put my address in this format https://example.api-us1.com i got this :

Any idea what I am doing wrong ?

Have a nice day !

Yes, in my case work only with name without url.

But we created the API connection to use TAGs and create multiples calls, because If we set all fields together, but you let some one blank it will change the information with “null”, even in the contacts alredy had information in Active Campaign. So I fixed it creating separated API calls with only fields as we will use to send information in each call.

Example: First call to check if contact exists calling only Email field. After that sync all multiple fields.

If anyone need connect with API can be guide by my screenshots. We hope it help you.

Also take a look in documentation to understand how it works Overview

AC_POST - Create or update contact
Remember to set your account name in URLs
URL: https://ACCOUNTNAME.api-us1.com/api/3/contact/sync

Body (JSON object, use <> for dynamic values)
{
“contact”: {
“email”:"",
“firstName”:"",
“lastName”:"",
“phone”: “”,
“fieldValues”:[
{
“field”:"",
“value”:""
},
{
“field”:"",
“value”:""
},
{
“field”:"",
“value”:""
}
]
}
}

I keep the ID fields as private, because I won’t change it.
AC_3

You will need to know your CustomField ID to do this, I created another call with GET to search for the name and ID. I created the repeating group and a search bar to find the exact name and ID via the GET API

AC_GET_CustomFields
URL: https://ACCOUNTNAME.api-us1.com/api/3/fieldValues

AC_POST - Create or update contact (only EMAIL)
URL: https://ACCOUNTNAME.api-us1.com/api/3/contact/sync

AC_POST - Add a tag to contact
URL: https://ACCOUNTNAME.api-us1.com/api/3/contactTags


You will need to know your CustomField ID to do this, I created another call with GET to search for the name and ID. I created the repeating group and a search bar to find the exact name and ID via the GET API

AC_GET_Tags
URL: https://ACCOUNTNAME.api-us1.com/api/3/contactTags?limit=100&offset=[offset]


With you have more tga 100 tags you need use the offset to pagination.

AC_POST - Update list status for a contact
URL: https://ACCOUNTNAME.api-us1.com/api/3/contactLists

Status 1 is subscribes and 2 is unsubscrives. You will need to know your List ID. Find in your URL.
url

We hope it helps many ActiveCampaign users :slight_smile:

Special thanks to @johnny . Helped a lot !