v0.1.0
First version of Truemail Crystal client.
require "truemail-client"
configuration = Truemail::Client::Configuration.new do |config|
config.secure_connection = false
config.host = "example.com"
config.port = 80
config.token = "token"
end
Truemail::Client.validate("[email protected]", configuration)
=>
{
"date": "2020-05-05 19:30:42 +0200",
"email": "[email protected]",
"validation_type": "smtp",
"success": true,
"errors": null,
"smtp_debug": null,
"configuration": {
"validation_type_by_domain": null,
"whitelist_validation": false,
"whitelisted_domains": null,
"blacklisted_domains": null,
"smtp_safe_check": false,
"email_pattern": "default gem value",
"smtp_error_body_pattern": "default gem value"
}
}