This project is not covered by Drupal’s security advisory policy.

This module provides

  • An wrapper for createsend-php, the library help us connect with CampaignMonitor service.
  • Rules actions
  • Lists widget for textfields

Install

Install this module like any other Drupal modules: download it to ./sites/all/modules/
Run drush atr to download dependencies. If you do not have Drush available on your machine, download http://j.mp/N5gZ1x, unzip it to sites/all/libraries/campaignmonitor, then we can find sites/all/libraries/campaignmonitor/csrest_general.php.

In your settings.php, add $conf['at_cm.api_key'] = 'PUT YOUR API KEY HERE'. This value is available at /admin/account/.

Usage

After success installation, cm servicers are available:

  • cm.administrators
  • cm.campaigns
  • cm.clients
  • cm.general
  • cm.lists
  • cm.people
  • cm.segments
  • cm.subscribers
  • cm.templates

Example:

at_container('cm.lists')->get_segments();

To have type hint, we can use AT_CM facade:

AT_CM::getLists()->get_segments();

Drush commands

  • drush at_cm.lists — View Lists
  • drush at_cm — Explore API

To contribute: Please make Pull Request on Github.

Credits

Module started by Andy Truong for GO1.

Project information

Releases