Emailhunter
A tiny ruby wrapper around Email Hunter API
Installation
Add this line to your application's Gemfile:
gem 'emailhunter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install emailhunter
Usage
require 'emailhunter'
email_hunter = EmailHunter.new('Your secret API key')
Your secret API key. You can generate it in your dashboard from https://emailhunter.co
Domain search API
Get the list of all the emails from a given domain name. Each email is returned with our source(s), its type (generic or personnal) and the date it was extracted on
result = email_hunter.search('stripe.com')
Accessing domain search response
result.status
result.results
result.emails
Email check API
Find if a given email exist. If it does, we'll return where it was found.
email_hunter.exist('[email protected]')
Accessing email check response
result.status
result.email
result.exist
result.sources
License
The restcountry GEM is released under the MIT License.
Contributing
- Fork it ( https://github.com/[my-github-username]/emailhunter/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request