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
- Host: GitHub
- URL: https://github.com/hashrocket/my_emma
- Owner: hashrocket
- License: mit
- Created: 2009-06-24T13:36:57.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2011-04-15T04:26:16.000Z (about 15 years ago)
- Last Synced: 2025-10-07T20:26:51.325Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 138 KB
- Stars: 4
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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.