Class: UniOne::Client
- Inherits:
-
Object
- Object
- UniOne::Client
- Includes:
- Domain, Email, Project, Template, Unsubscribed, Webhook, Connection, Validation
- Defined in:
- lib/unione/client.rb,
lib/unione/client/email.rb,
lib/unione/client/domain.rb,
lib/unione/client/project.rb,
lib/unione/client/webhook.rb,
lib/unione/client/template.rb,
lib/unione/client/unsubscribed.rb
Defined Under Namespace
Modules: Domain, Email, Project, Template, Unsubscribed, Webhook
Constant Summary collapse
- API_ENDPOINT =
'https://%{data_center}.unione.io/%{lang}/transactional/api/v1/'
Instance Method Summary collapse
-
#initialize(data_center:, lang:, api_key:) ⇒ Client
constructor
-
Args : -
data_center-> data center: [‘eu1’, ‘us1’] -lang-> Two-letter ISO 639-1 language abbreviation, e.g.
-
Methods included from Project
#create_project, #delete_project, #list_projects, #update_project
Methods included from Unsubscribed
#check_unsubscribed, #list_unsubscribed, #unsubscribe
Methods included from Webhook
#delete_webhook, #get_webhook, #set_webhook
Methods included from Template
#delete_template, #get_template, #list_templates, #set_template
Methods included from Email
Methods included from Domain
#get_dns_records, #list_domains, #validate_dkim, #validate_verification_record
Methods included from Connection
Constructor Details
#initialize(data_center:, lang:, api_key:) ⇒ Client
-
Args :
-
data_center-> data center: [‘eu1’, ‘us1’] -
lang-> Two-letter ISO 639-1 language abbreviation, e.g. ‘en’ -
api_key-> your UniOne API key
-
31 32 33 34 35 |
# File 'lib/unione/client.rb', line 31 def initialize(data_center:, lang:, api_key:) @data_center = data_center @lang = lang @api_key = api_key end |