campaignmasterb

Build Status Gem Version

Ruby interface that allows you to send subscribers to a Campaign Master list.

Currently no other Campaign Master API functions are supported, though it should be trivial to add these.

Installation

Campaignmasterrb is available via Rubygems:

gem install campaign_master

or add it to your Gemfile:

gem 'campaign_master'

You'll also currently need to add the GitHub build of the Savon client. When the version of Savon on RubyGems has been updated we'll add this as a proper dependency.

gem 'savon', :git => 'https://github.com/savonrb/savon.git', :ref => '5acd246'

Basic usage

require 'campaign_master'

format = "EmailAddress,First_Name,IsActive\r\n"
subscribers = "[email protected],Derek,1\r\[email protected],Doreen,1"
delimiter = ","

client = CampaignMaster.client(username, password, client_id)
client.call(:Subscriber).import(format, delimiter, suscribers)

The format string can contain any fields supported by Campaign Master.

License

Licensed under New BSD License