A Ruby gem which helps to communicate with MailerLite API.
Add this line to your application's Gemfile:
gem 'mailerlite'When you sign up for an account, you are given an API key. You authenticate to the MailerLite API by providing your API key in the request. You can find your API key in page: Integrations » Developer API.
client = MailerLite::Client.new(api_key: 'my-secret-api-key')Or create file under config/initializers/mailerlite.rb
MailerLite.configure do |config|
config.api_key = 'my-secret-api-key'
endThis library aims to support and is tested against the following Ruby implementations:
- Ruby 1.9.3
- Ruby 2.0.0
- Ruby 2.1.0
- Ruby 2.2.0
- Ruby 2.3.0
Copyright (c) 2016 Justas Palumickas. See LICENSE for details.