Class: Hominid::STS

Inherits:
API
  • Object
show all
Defined in:
lib/hominid/sts.rb

Constant Summary collapse

MAILCHIMP_STS_VERSION =

MailChimp STS API Documentation: apidocs.mailchimp.com/sts/1.0/

"1.0"

Constants inherited from API

API::MAILCHIMP_API_VERSION

Instance Method Summary collapse

Methods inherited from API

#method_missing, #respond_to?

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