Updated: New Version 0.99 - Still unfinished

Yes, it is still an unfinished version (v.0.99) I only implemented methods we actually needed for client work. If anything is missing and you add to it, please share with the rest of us.

Available Methods for interaction with Mailchimp API

  • isEmail
  • login (depricated in MCApi.1.2)
  • listBatchSubscribe
  • ListBatchUnsubscribe
  • listInterestGroupAdd
  • ListInterestGRoupDel
  • ListMemberinfo
  • ListMembers
  • lists
  • listInterestGroups
  • listSubscribe
  • listUnsubscribe
  • CampaignContent
  • campaigns
  • campaignStats
  • CampaignAbuseReports
  • CampaignClickStats
  • CampaignHardBounces
  • campaignSoftBounces
  • campaignUnsubscribes
  • CampaignEmailStatsAIMAll
  • createCampaign
  • listTemplates

Earlier this week a fellow programmer pointed out to me just how far behind the posted version of this CFC was, that I had to jump to action and share my updated version, that we us now since December 2010.

The 1.2 invocation code

I still need to read up about v1.3 changes of the API.
<cfset apiKey = "GetYourOwnAPIKey">
<cfset url= "http://#listlast(application.mc.apiKey, "-")#.api.mailchimp.com/1.2/">
<cfset output = "xml">
<cfset mp = createObject("component","components.mailchimp099").init(apiKey,url,output)>
You need to replace "GetYourOwnAPIKey" with your account's API Key. You'll find it on Mailchimp under Account Settings > APIKeys https://us1.admin.mailchimp.com/account/api

For a query recordset of all your lists:
<cfset qryMylists = mp.lists(apikey)>

For Groups of a specific list
<cfset interestgroups = mp.listInterestGroups(apikey,listid)>
<cfloop from="1" to="#ArrayLen(interestgroups.groups)#" index="g">

A set of Templates:
<cfset qryMyTemplates = mp.listTemplates(application.mc.apikey)>
These examples should get you started.

Feel free to email (bph@idxtools.org) me with suggestions, corrections and other comments. Or stop by our IDXTools blog and leave a comment.

You can also follow me on Twitter: @bph

Stay in touch!

Rick's Gravatar Hi birgit! Thanks for sharing! ://www.fixcleanerreviews.net I needed some help with mail chimp
# Posted By Rick | 12/31/11 11:23 AM
Jhon's Gravatar It's looks great! Will give it a try in ://www.justbeenpaidscam.net/ thank you! have a great week
Jhon Segal ://www.fixcleanerreviews.net/fixcleaner-scam
# Posted By Jhon | 3/19/12 4:09 PM
Julian CaƱaveral's Gravatar hello, can you teach me to use the function listsuscribe MailChimp API for coldfusion, I'm starting to develop in coldfusion thanks.
# Posted By Julian CaƱaveral | 4/26/12 1:44 PM
Birgit Pauli-Haack's Gravatar Julian, I answered you on your first comment post.. sorry..
# Posted By Birgit Pauli-Haack | 4/26/12 1:48 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006. | Protected by Akismet | Blog with WordPress