This repository contains the source code of SendPulse mailing list selector custom element for Kentico Kontent. Created by TrueLime
- Deploy the code to a secure public host
- Follow the instructions in the Kentico Kontent documentation to add the element to a content model.
- Configure the JSON parameters as detailed in the JSON Parameters section
{
"id": "<YOUR API ID>",
"secret": "<YOUR API SECRET>"
}
Mailing lists are retrieved in an array of mailing list objects. After selecting a mailing list from SendPulse the object is saved in Kentico Kontent. For more information see: https://sendpulse.com/br/integrations/api/bulk-email.
[
{
"id": "1",
"name": "My first list",
"all_email_qty": "1",
"active_email_qty": "0",
"inactive_email_qty": "1",
"creationdate": "2015-04-20 08:52:40",
"status": "0",
"status_explain": "Active"
},
{
"id": "2",
"name": "My second list",
"all_email_qty": "6",
"active_email_qty": "0",
"inactive_email_qty": "6",
"creationdate": "2015-04-20 09:02:39",
"status": "0",
"status_explain": "Active"
}
]
When an mailing list is selected its ID can be used in a POST request to SendPulse to add one or multiple email adresses to the mailing list. This POST request for example can be added to a simple form on your website. The POST request is not part of the custom element.
Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your GitHub account as well.