Ruby client for the Mailbluster API.
- Quick start
- Usage
- Demo script
- API Documentation
- Detailed mailbluster-ruby documentation
- Support
- License
- Code of conduct
- Contribution guide
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')
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 ...}>
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
Official documentation for the Mailbluster API can be found at https://app.mailbluster.com/api-doc.
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!
The gem is available as open source under the terms of the MIT License.
Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Pull requests are welcome!