Disposable Email Checker API - Ruby Gem

Email Disposable Checker is a simple tool for checking if an email address is disposable. It returns if the email address is disposable or not.

Installation

Add this line to your application's Gemfile:

gem 'apiverve_emaildisposablechecker'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install apiverve_emaildisposablechecker

Getting Started

Get your API key at APIVerve

Basic Usage

require 'apiverve_emaildisposablechecker'

# Initialize the client
client = APIVerve::Emaildisposablechecker::Client.new(api_key: "YOUR_API_KEY")

# Make a request
response = client.execute({ email: "support@myspace.com" })

# Print the response
puts response

Error Handling

begin
  response = client.execute({ email: "support@myspace.com" })
  puts response["data"]
rescue APIVerve::Emaildisposablechecker::ValidationError => e
  puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Emaildisposablechecker::APIError => e
  puts "API error: #{e.message}"
  puts "Status code: #{e.status_code}"
end

Debug Mode

# Enable debug logging
client = APIVerve::Emaildisposablechecker::Client.new(
  api_key: "YOUR_API_KEY",
  debug: true
)

Example Response

{
  "status": "ok",
  "error": null,
  "data": {
    "isDisposable": false,
    "email": "support@myspace.com",
    "domain": "myspace.com"
  }
}

Documentation

For more information, visit the API Documentation.

Support

License

This gem is available under the MIT License.