FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

mailchimpV3

v1.0.0 Public

mailchimpV3

A feature complete Mailchimp Api 3.0 Wrapper for Coldfusion Coldbox.

There are a few Coldfusion implementations for Mailchimp but they are all far from being feature complete.

The api is loosely based on https://github.com/kevindb/cf-mailchimp and https://github.com/thinkshout/mailchimp-api-php

All API endpoints are supported

  • Automations
  • CampaignFolders
  • Campaigns
  • Conversations
  • Ecommerce
  • FileManagerFiles
  • FileManagerFolders
  • Lists
  • Mailchimp
  • Reports
  • Search Campaigns (see campaigns)
  • Search Members (see lists)
  • TemplateFolders
  • Templates

Installation

This ColdBox Module can be installed using CommandBox:

box install mailchimpV3

ColdBox Module

If you are using Coldbox 4.3 or later, we recommend to setup the Api in your central Coldbox.cfc config like

 	moduleSettings = {
    		mailchimpV3 = {
        		apikey='YOUR API Key goes here'
    	  	}

Tests

Mailchimp doesn't offer a sandbox, so all test run in the account associated with the API key. It a test fails it might leave a test list with entries which can be safely deleted.

Usage

/**
* A normal ColdBox Event Handler
*/
component{
	property name="mailchimpLists" inject="[email protected]";
	
	function index(event,rc,prc){
	
		// gets all lists
    		var results = mailchimpLists.getLists();
	  		writeDump(results);
	  	
	  	// just return email addresses from abuse reports	
		var abuseReports = lists.getAbuseReports('INSERT LIST ID HERE','abuse_reports.email_address');
		writeDump(abuseReports);	  		
		abort;
	}
}

Versions

1.0 11th Sep 2017 Tests with TestBox. Ecommerce and other remaining models are now implemented! 0.9 01th Sep 2017 Lists and Campaigns. Now can load Template and send a Campaign! 0.8 30th Aug 2017 fixes for put, updated Campaigns,FileManager, etc 0.7 25th Aug 2017 Added methods in Automations, CampaignFolders, Conversations

Written by

www.akitogo.com

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0.0 Sep 11 2017 10:35 AM Sep 11 2017 10:35 AM
Version History
0.9.0 Sep 01 2017 11:22 AM Sep 01 2017 11:22 AM
0.8.0 Aug 30 2017 11:40 AM Aug 30 2017 11:40 AM
0.7.0 Aug 25 2017 05:34 AM Aug 25 2017 07:09 AM
0.6.0 Aug 10 2017 01:48 PM Aug 10 2017 01:48 PM
0.5.3 Aug 09 2017 10:32 AM Aug 09 2017 10:32 AM
0.5.2 Aug 09 2017 09:21 AM Aug 09 2017 09:21 AM
0.5.0 Aug 09 2017 06:04 AM Aug 09 2017 06:07 AM

 

No collaborators yet.
 
  • Aug 09 2017 06:04 AM
  • Sep 11 2017 10:35 AM
  • 620
  • 1,664
  • 33