cluksha wrote:
> Has anyone interfaced CF with Campaign Monitor's API ?
>
http://www.campaignmonitor.com/api/
I am desiring to do so - but I am not even
> sure where to start looking for tutorials on interfacing
with this type
> program. You can interface using Http-get, http-post and
SOAP - and honestly I
> know very little about either of those options.
the webservice (SOAP) would be ideal (ie won't have to parse
any XML) but it
seems to be throwing "Duplicate file name" errors when i
tried to build
webservice (ws) stubs for it. cf thinks there's ws
programming errors but it
might simply be the .NET nature of the ws (i'll leave that
research to somebody
else).
http get might be easiest, here's a simple example to get the
system datetime:
<cfset apiKey="your API key goes here">
<cfhttp
url="
http://app.campaignmonitor.com/api/api.asmx/User.GetSystemDate?ApiKey=#apiKey#"
method="GET" result="result" />
<cfset sysTime=xmlParse(result.fileContent)>
<cfdump var="#sysTime.anyType.xmlText#">
it looks simple enough, the xml parsing will probably be the
hardest part of this.