A few months ago, we wrote about the love we have for Campaign Monitor. We love using it, and we’ve integrated it into several projects that we’ve worked on recently (including one we’ll tell you about next week).

One of the main reasons that we act like giddy schoolgirls around Campaign Monitor is the fact that they have a wonderful API. (An API is an interface that lets developers access features of a website from within their own code … it’s cool. Trust us!) Being the nice fellows that they are, they also included sample code that lets you easily access their API, if you are developing in ASP.Net or PHP. Of course, that left us RubyOnRails junkies out on the street, cold turkey style.

Not any more! It makes us immeasurably proud to announce the release of our first open source project: CampaignMonitor

A few months ago, we wrote about the love we have for Campaign Monitor. We love using it, and we’ve integrated it into several projects that we’ve worked on recently (including one we’ll tell you about next week).

One of the main reasons that we act like giddy schoolgirls around Campaign Monitor is the fact that they have a wonderful API. (An API is an interface that lets developers access features of a website from within their own code … it’s cool. Trust us!) Being the nice fellows that they are, they also included sample code that lets you easily access their API, if you are developing in ASP.Net or PHP. Of course, that left us RubyOnRails junkies out on the street, cold turkey style.

Not any more! It makes us immeasurably proud to announce the release of our first open source project: CampaignMonitor

Using the particularly wonderful Flickr Ruby interface written by Scott Raymond as a guide, we built a simple wrapper class that lets you access most of the functionality of the CampaignMonitor API. (We say most, because there’s a couple of things we haven’t got working yet, but hey, it’s only a version 0.1.0 release, so cut us some slack!).

And how would you use it? Well here’s a simple example:

    require 'campaign_monitor'

    @cm = CampaignMonitor.new()

    @clients = @cm.clients

    for client in @clients
        puts client.name
    end

Easy! Now you do it. Check out the documentation to get you started.

For more information, check out the source at our Trac install: http://trac.spintech.com.au/plugins. SVN access coming soon.

Remember, it’s only 0.1.0, and we’ve still got a fair way to go. But jump in, and let us know of any bugs you run across.

Sorry, comments are closed for this article.