This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Aug 12 07:10:35 -0700 2008 | |
| |
MIT-LICENSE | Sun Jun 22 20:34:50 -0700 2008 | |
| |
README.rdoc | Fri Apr 24 21:02:55 -0700 2009 | |
| |
Rakefile | Tue Aug 12 07:10:36 -0700 2008 | |
| |
campaign_monitor.gemspec | Fri Jan 23 12:44:00 -0800 2009 | |
| |
init.rb | Sun Jun 22 20:34:50 -0700 2008 | |
| |
install.rb | Sun Jun 22 20:34:50 -0700 2008 | |
| |
lib/ | Fri Jan 23 12:43:49 -0800 2009 | |
| |
support/ | Sat Aug 23 16:41:21 -0700 2008 | |
| |
test/ | Tue Jan 06 21:16:44 -0800 2009 |
README.rdoc
campaign_monitor
This RubyGem provides access to the Campaign Monitor API (www.campaignmonitor.com/api).
Campaign Monitor recently made some changes to their API.
This fork makes the following changes:
- host changed from app.campaignmonitor.com to api.createsend.com
- ID values are no longer sent #to_i because they are hex strings
- added support for subscribers with custom fields using SOAP API
- refactored gemspec to build on github
- misc. cleanup and refactoring
Pre-requisites
An account with Campaign Monitor and the API Key. Accounts are free and can be created at www.campaignmonitor.com.
Resources
Install
sudo gem install patientslikeme-campaign_monitor -s http://gems.github.com
Add the following to the Rails::Initializer block in config/environment.rb (optionally specify a :version):
config.gem 'patientslikeme-campaign_monitor', :lib => 'campaign_monitor', :source => 'http://gems.github.com'
Git Repository
github.com/patientslikeme/campaign_monitor
Usage
cm = CampaignMonitor.new # assumes you've set CAMPAIGN_MONITOR_API_KEY in your project
for client in cm.clients
for list in client.lists
client.name # => returns the name
# modify a subscriber list
list.add_subscriber(email, name, custom_fields_hash)
list.remove_subscriber(email)
list.add_and_resubscribe(email, name, custom_fields_hash)
# get subscriber list details
subscribers = list.active_subscribers(since_time)
unsubscribed = list.unsubscribed(since_time)
bounced = list.bounced(since_time)
end
for campaign in client.campaigns
end
end







