~tim/mailchimp3

ref: v1.1.0 mailchimp3/lib/mailchimp3.rb -rw-r--r-- 336 bytes
c9e5ca80Tim Morgan Release 1.1.0 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require_relative 'mailchimp3/endpoint'
require_relative 'mailchimp3/oauth'
require_relative 'mailchimp3/errors'

module MailChimp3
  module_function

  def new(*args)
    Endpoint.new(*args)
  end

  def config
    @config ||= Struct.new(:client_id, :client_secret).new
  end

  def oauth
    @oauth ||= MailChimp3::OAuth.new
  end
end