Skip to content

ipepe-oss/mailbluster-ruby

 
 

Repository files navigation

mailbluster

Gem Version CI

Ruby client for the Mailbluster API.


Quick start

gem install mailbluster

or with bundler:

bundler add mailbluster

then configure the gem:

Mailbluster.configure do |config|
  config.api_key = 'your-api-key'
end

or with environment variables:

env MAILBLUSTER_API_KEY=your-api-key ruby app.rb

or directly on the Client instance:

mailbluster_client = Mailbluster::Client.new('your-api-key')

Usage

mailbluster_client = Mailbluster::Client.new
lead = mailbluster.leads.create(email: 'lead@example.org')
puts lead.inspect # => #<Mailbluster::Resource @resource_type=#<Mailbluster::ResourceType::Lead>, @raw_attributes={"id"=>262093545 ...}>

mailbluster.leads.find(lead.email) # => #<Mailbluster::Resource @resource_type=#<Mailbluster::ResourceType::Lead>, @raw_attributes={"id"=>262093545 ...}>

Demo script

In the bin directory, there is a demo script that you can run to see how to use the gem and to create example leads in Mailbluster. You can run it like this:

env MAILBLUSTER_API_KEY=your-api-key ruby bin/demo

Mailbluster API Documentation

Official documentation for the Mailbluster API can be found at https://app.mailbluster.com/api-doc.

Detailed mailbluster-ruby documentation

Support

If you want to report a bug, or have ideas, feedback or questions about the gem, let me know via GitHub issues and I will do my best to provide a helpful answer. Happy hacking!

License

The gem is available as open source under the terms of the MIT License.

Code of conduct

Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Contribution guide

Pull requests are welcome!

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%