bleed/bftrcraftapsis

Integrations between Craft and Apsis

dev-master 2018-07-04 09:34 UTC

This package is not auto-updated.

Last update: 2024-05-16 10:47:21 UTC


README

A work in progress plugin that implements the Apsis API into Craft 3.

Installation

$ composer require bleed/bftrcraftapsis

Make sure to enter a valid Apsis API key under the plugin settings in the Craft admin panel.

Examples

Add subscriber to mailing list

{% set subscriber = {
	'Name': 'Gilles Deleuze',
	'Email': 'gilles@deleuze.fr'
} %}

{# first param is the mailing list ID #}
{# second param is subscriber object #}
{# third param decides whether or not to update info if the subscriber already exists #}
{{ apsisAddSubscriber('2710122', subscriber, false) }}