My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 02, 2009 by gr...@zum.io
Labels: Featured
CodeSample  
A quick-and-dirty sample of usage

Usage

>>> from campaignmonitorapi import CampaignMonitorApi
>>> cm = CampaignMonitorApi("YOUR API KEY", None)
>>> listid = 12345
>>> email = "nowhere@gmail.com"
>>> name = "Grant"
>>> cm.subscriber_add(listid, email, name)
True

Exceptions

A CampaignMonitorApi.CampaignMonitorApiException is thrown if Campaign Monitor returns an exception.

"OK" return codes are ignored. The returned code is currently not included in the exception - the message is passed to the exception.

Tips


Sign in to add a comment
Hosted by Google Code