Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.91 KB

File metadata and controls

61 lines (43 loc) · 1.91 KB

MailerLite API Ruby wrapper

A Ruby gem which helps to communicate with MailerLite API.

Gem Version Build Status Dependency Status Coverage Status Code Climate

Installation

Add this line to your application's Gemfile:

gem 'mailerlite'

Usage

Authentication

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'
end

Supported Ruby Versions

This 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

Copyright (c) 2016 Justas Palumickas. See LICENSE for details.