Module: Sendmux::SDK

Defined in:
lib/sendmux/sdk.rb,
lib/sendmux/sdk/version.rb

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.mailbox(api_key:, base_url: Sendmux::Mailbox::DEFAULT_BASE_URL, retry_options: nil) ⇒ Object



15
16
17
# File 'lib/sendmux/sdk.rb', line 15

def self.mailbox(api_key:, base_url: Sendmux::Mailbox::DEFAULT_BASE_URL, retry_options: nil)
  Sendmux::Mailbox::Client.new(api_key: api_key, base_url: base_url, retry_options: retry_options)
end

.management(api_key:, base_url: Sendmux::Management::DEFAULT_BASE_URL, retry_options: nil) ⇒ Object



19
20
21
# File 'lib/sendmux/sdk.rb', line 19

def self.management(api_key:, base_url: Sendmux::Management::DEFAULT_BASE_URL, retry_options: nil)
  Sendmux::Management::Client.new(api_key: api_key, base_url: base_url, retry_options: retry_options)
end

.sending(api_key:, base_url: Sendmux::Sending::DEFAULT_BASE_URL, retry_options: nil) ⇒ Object



11
12
13
# File 'lib/sendmux/sdk.rb', line 11

def self.sending(api_key:, base_url: Sendmux::Sending::DEFAULT_BASE_URL, retry_options: nil)
  Sendmux::Sending::Client.new(api_key: api_key, base_url: base_url, retry_options: retry_options)
end