kickboxio / kickbox-ruby

Email Address Verification for Ruby
http://kickbox.com
33 stars 22 forks source link

Kickbox Email Verification Service

Email Verification Library for Ruby

Kickbox determines if an email address is not only valid, but associated with a actual user. Uses include:

Getting Started

To begin, hop over to kickbox.com and create a free account. Once you've signed up and logged in, click on API Settings and then click Add API Key. Take note of the generated API Key - you'll need it to setup the client as explained below.

Installation

Make sure you have rubygems installed

$ gem install kickbox

Versions

Works with [ 1.9. / 2. ]

Usage

require "kickbox"

client   = Kickbox::Client.new('Your_API_Key_Here')
kickbox  = client.kickbox()
response = kickbox.verify("test@example.com")

verify returns a Kickbox::HttpClient::Response which has a body attribute which contains the deserialized JSON.

You can use it like this:

response.body['result'] #=> "deliverable"
response.body['reason'] #=>  "accepted_email"

Full response information is provided below

Options

timeout integer (optional) - Maximum time, in milliseconds, for the API to complete a verification request. Default: 6000.

# Example with options
response = kickbox.verify("test@example.com", { "timeout" => 60000 })

Response information

A successful API call responds with the following values:

Response headers

Along with each response, the following HTTP headers are included:

License

MIT

Bug Reports

Report here.

Need Help?

help@kickbox.com