Class: Hominid::STS
Constant Summary collapse
- MAILCHIMP_STS_VERSION =
MailChimp STS API Documentation: apidocs.mailchimp.com/sts/1.0/
"1.0"
Constants inherited from API
Instance Method Summary collapse
-
#initialize(api_key, config = {}) ⇒ STS
constructor
Initialize with an API key and config options.
Methods inherited from API
Methods included from Security
#apikey_add, #apikey_expire, #apikeys
Methods included from List
#find_list_by_id, #find_list_by_name, #find_list_by_web_id, #find_list_id_by_name, #find_list_id_by_web_id
Methods included from Campaign
#find_campaign_by_id, #find_campaign_by_web_id, #find_campaigns_by_list_id, #find_campaigns_by_list_name, #find_campaigns_by_title, #find_campaigns_by_type
Constructor Details
#initialize(api_key, config = {}) ⇒ STS
Initialize with an API key and config options
8 9 10 11 12 13 14 15 16 |
# File 'lib/hominid/sts.rb', line 8 def initialize(api_key, config = {}) defaults = { :api_version => MAILCHIMP_STS_VERSION, :domain => 'sts.mailchimp.com', :secure => false, :timeout => nil } super(api_key, defaults.merge(config)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hominid::API