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 (
Marcelo Menezes (author)
Mon Nov 30 14:52:07 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
.bnsignore | Thu Mar 26 03:15:07 -0700 2009 | |
| |
.gitignore | Fri Apr 10 09:51:00 -0700 2009 | |
| |
LICENSE | Fri Apr 10 09:51:00 -0700 2009 | |
| |
README.rdoc | Sat Jun 27 10:36:24 -0700 2009 | |
| |
Rakefile | Fri May 22 06:20:56 -0700 2009 | |
| |
VERSION.yml | Mon Nov 30 14:51:58 -0800 2009 | |
| |
campaigning.gemspec | Mon Nov 30 14:52:07 -0800 2009 | |
| |
lib/ | Mon Nov 30 14:49:51 -0800 2009 | |
| |
sample/ | Mon Nov 30 14:49:51 -0800 2009 | |
| |
test/ | Mon Nov 30 14:49:51 -0800 2009 |
README.rdoc
Campaigning
This is a Ruby wrapper around CampaignMonitor API(www.campaignmonitor.com/api) using SOAP.
Pre-requisites
An account with Campaign Monitor and the API Key (www.campaignmonitor.com).
Resources
Dependencies
This gem requires the following gems:
Soap4r (1.5.8) Jeweler (http://technicalpickles.com/posts/craft-the-perfect-gem-with-jeweler)
Installing
sudo gem install gnumarcelo-campaigning -s http://gems.github.com
Configuring your API key
require 'campaigning' CAMPAIGN_MONITOR_API_KEY = '_put_here_your_api_key_'
Usage
This gem provides a set of classes to access all available information on Campaign Monitor.
These are the list of classes:
Campaigning, Campaigning::Client, Campaigning::Campaign, Campaigning::List and Campaigning::Subscriber
The examples below assumes you have set CAMPAIGN_MONITOR_API_KEY constant with your Campaign monitor API.
Sample use of the Client class:
#Here is how to get a list of all clients...
clients = Campaigning::Client.get_all_clients
#Here is how to create a brand new subscriber list for an Client
client = Campaigning::Client.find_by_name("Client One Company")
list = Campaigning::List.create!(
:clientID => client.clientID,
:title => "List of people from Brazil",
:confirmOptIn => false
)
For further examples please check at the sample directory.
What if I found a BUG?
If you found a bug in the Campaigning wrapper, it’s easy to report it on the like below:
http://github.com/gnumarcelo/campaigning/issues
Copyright
Copyright © 2009 Marcelo Menezes. See LICENSE for details.







