ConstantContact (1.0.0)
What is it?
This gem provides a set of classes to access information on [ConstantContact][h] via the published API:
Contact, List, Activity, Campaign.
All these classes are inherited from ActiveResouce::Base. Refer to the ActiveResouce documentation for more information.
Installing
gem install constantcontact
Dependencies (see constantcontact.gemspec or run bundle check)
- Activeresource >= 3.0.0
Documentation
I'm on rdoc.info
Configure your key
require 'constantcontact'
ConstantContact::Base.user = 'your_username'
ConstantContact::Base.password = 'your_password'
ConstantContact::Base.api_key = 'api-auth-token'
If you are using this in a Rails application, putting this code in a config/initializers/constantcontact.rb file is recommended. See config_initializers_constantcontact.rb in the examples/ directory.
Usage
@contacts = ConstantContact::Contact.find(:all)
License
This code is free to be used under the terms of the MIT license.
Bugs, Issues, Kudos and Catcalls
Comments are welcome. Send your feedback through the issue tracker on GitHub
If you have fixes: Submit via pull requests. Do not include version changes to the version file.
This is inspired by and closely based on original work by Timothy Case, https://github.com/timcase/constant_contact and contributions.
Authors
Contributors
- Tim Case
- Laurence A. Lee
- [Ed Hickey][bassnode]