An open API service indexing awesome lists of open source software.

https://github.com/hashrocket/my_emma

Ruby wrapper for the MyEmma Remote Signup API
https://github.com/hashrocket/my_emma

Last synced: 3 months ago
JSON representation

Ruby wrapper for the MyEmma Remote Signup API

Awesome Lists containing this project

README

          

h1. my_emma

p. Post requests to MyEmma.com's Remote Signup API.

h2. Installation

sudo gem install hashrocket-my_emma

h2. Usage



>> MyEmma.credentials = {
:emma_account_id => '9999',
:signup_post => '8888',
:username => 'user',
:password => 'pass'
}
>> response = MyEmma.signup("test@example.com")
=> #
>> response.success?
=> true
>> response.failed?
=> false
>> response.added_member?
=> true

>> response = MyEmma.signup("test@example.com")
=> #
>> response.updated_member?
=> true

>> MyEmma.signup("joe@example.com", {:emma_member_name_first => "Joe", :emma_member_name_last => "Piscopo"})
=> #

# Assign member to group with an ID of 12345
>> MyEmma.signup("groupie@example.com", "group[12345]" => 1)
=>

h2. Copyright

Copyright (c) 2009 Hashrocket. See MIT_LICENSE for details.