https://github.com/bumi/campaignmonitor
Simple CampaignMonitor.com class to add/remove subscribers to/from subscriber lists
https://github.com/bumi/campaignmonitor
Last synced: about 2 months ago
JSON representation
Simple CampaignMonitor.com class to add/remove subscribers to/from subscriber lists
- Host: GitHub
- URL: https://github.com/bumi/campaignmonitor
- Owner: bumi
- Created: 2008-07-28T03:00:42.000Z (almost 18 years ago)
- Default Branch: master
- Last Pushed: 2009-08-11T23:53:47.000Z (almost 17 years ago)
- Last Synced: 2025-01-01T18:31:25.651Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 78.1 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
CAMPAIGNMONITOR
=============
This is a simple CampaignMonitor.com class to add/remove subscribers to/from subscriber lists.
I'm using this to add and remove subscribers/users from my app to campaignmonitor.com
USAGE:
---------
require "campaign_monitor"
CampaignMonitor.api_key = "your key here"
campaign_monitor = CampaignMonitor.new( [LIST_ID] )
campaign_monitor.add_subscriber(:email => "me@spam.com", :name =>"Michael Spam") # note everything but email and name will be passed to CampaignMonitor as custom field
campaign_monitor.remove_subscriber("me@spam.com")
TODO:
---------
* perhaps add some more features like handle bounces
Credits:
---------
http://bjhess.com/bjhessblog/2008/02/19/calling-mailbuild-addwithcustomfields-with-ruby/
Michael Bumann - railslove.com