‘mailbuild’ Archive

Calling the Mailbuild API from CF

4 December 2007 15:42

Had to help with someone out today who was trying to call the Mailbuild API from ColdFusion. It’s a webservice and was proving a little annoying to get going, but after a bit of playing the final code looks like this.

<cfscript>
params = structNew();
params.ApiKey = '{yourkey}';
params.ListID = '{yourlistid}';
params.Email = 'name@domain.com';
params.Name = 'Name';
</cfscript>

<cfinvoke webservice="http://{company}.createsend.com/api/api.asmx?wsdl"
method="AddSubscriber"
parameters = "#params#">

This is adding a new subscriber to a given list. Hopefully this might help someone integrating with CF!

Filed: Technology // Tagged: , , // No Comments

 
Twitter   •   About   •   Contact
©2010 Ian Winter. All Rights Reserved.   •   Powered by WordPress   •   Hosted at Memset