github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

vigetlabs / email_labs_client

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A simple Ruby client for the EmailLabs API. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updated README 
dce (author)
Tue Oct 21 07:17:02 -0700 2008
commit  5ac67ccd55a2997feb1422dd9087b1f1b2a054f3
tree    04a5c1e85456432548daf78b0b2af5aa3959b41c
parent  a0ea35b55b487f55a43d755c7df76fac3ef215cf
email_labs_client /
name age
history
message
file README.markdown Loading commit data...
file email_labs_client.rb
file email_labs_client_test.rb
README.markdown

EmailLabsClient

This program is a simple Ruby client for the EmailLabs API. We're releasing it initially as an example of a working API client. It will probably require some modification on your part, as it's highly specialized for our particular purposes. If you find it useful, please send us patches so that we can make it more full-featured.

Features

We need to be able to add users to a list with different demographic information, and send email to individual users on our list. We've defined a method_missing which handles methods of the formats subscribe_user_to_[mailing] and send_[mailing]. These methods reference the MAILING_LISTS class variable. Since it's so highly specialized, method_missing is deceptively unimportant; the protected methods are more universal, and more interesting.

The main method is send_request, which takes a type and an activity (see the API documentation for more information), as well as a block where the request body is defined. Built on top of that are subscribe_user and send_email, which behave as expected. By looking through these three methods, you should be able to get a good idea of how to interact with the EmailLabs API.

Dependencies

EmailLabsClient uses Builder to create XML for requests. We also require ActiveSupport for the .blank? method, but that can be removed if you don't need that functionality. The tests use Test/Unit, Mocha, and Shoulda.


Copyright (c) 2008 Viget Labs, released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server