Skip to content

JKannekens/kontent-custom-element-sendpulse

Repository files navigation

alt text

SendPulse mailing list selector for Kentico Kontent

This repository contains the source code of SendPulse mailing list selector custom element for Kentico Kontent. Created by TrueLime

Setup

  1. Deploy the code to a secure public host
  2. Follow the instructions in the Kentico Kontent documentation to add the element to a content model.
  3. Configure the JSON parameters as detailed in the JSON Parameters section

JSON Parameters

{
    "id": "<YOUR API ID>",
    "secret": "<YOUR API SECRET>"
}

Response

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"
  }
]

Purpose

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.

Deploying

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.

Deploy to Netlify

About

SendPulse mailing list selector for Kentico Kontent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published