CampaignMonitor

A wrapper class to access the Campaign Monitor API. Written using the wonderful Flickr interface by Scott Raymond as a guide on how to access remote web services

Author: Jordan Brock

Copyright: Copyright © 2008 Jordan Brock

License: MIT

USAGE:

require 'campaign_monitor'

cm = CampaignMonitor.new(API_KEY) # creates a CampaignMonitor object Can set CAMPAIGN_MONITOR_API_KEY in environment.rb

cm.clients # Returns an array of clients associated with the user account

cm.campaigns(client_id)

cm.lists(client_id)

cm.add_subscriber(list_id, email, name)

CLIENT

client = Client.new(client_id)

client.lists

client.campaigns

LIST

list = List.new(list_id)

list.add_subscriber(email, name)

list.remove_subscriber(email)

list.active_subscribers(date)

list.unsubscribed(date)

list.bounced(date)

CAMPAIGN

campaign = Campaign.new(campaign_id)

campaign.clicks

campaign.opens

campaign.bounces

campaign.unsubscribes

campaign.number_recipients

campaign.number_clicks

campaign.number_opens

campaign.number_bounces

campaign.number_unsubscribes

SUBSCRIBER

subscriber = Subscriber.new(email)

subscriber.add(list_id)

subscriber.unsubscribe(list_id)

Data Types

SubscriberBounce

SubscriberClick

SubscriberOpen

SubscriberUnsubscribe

Result

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Pages