Debounce v0.1.1 Debounce View Source
Documentation for Debounce.
Link to this section Summary
Functions
Debounce verify/1 accepts and email_address and returns a three member tuple containing the summarized results of the check.
Debounce verify/2 accepts and email_address and response_type atom (:full or :minimal) and returns a three member tuple containing the results of the check..
Link to this section Functions
Debounce verify/1 accepts and email_address and returns a three member tuple containing the summarized results of the check.
Examples
iex> Debounce.verify("googolplex@yahoo.com")
{:ok,
%{
"photo" => "https://cdn.debounce.io/j3qPRRUBgdrRz9TyNyyZh2ilfAB-EztFQY_Y0g5w_hTb2BvmWOGlroUuj9czIq-Xi51D_Z_RqtUlxCw76Rz4bYYdAPqziTsytZKiV6_gRWQ0y5Rlqstp0r6V3m_hJTYx6WHpKMnceGbIakF71mC505A1ROdZTNgEvLR85rTy--Fvllc1f3QGl0VfLBThqAqixILrBqKZAZNGD5xporjVLg==",
"status" => "safe",
"suggestion" => ""
}, "googleplex@yahoo.com"}
iex> Debounce.statuses
["safe", "bounce", "trap", "temp", "catch_all", "unknown", "invalid_check", "failed_check"]
Debounce verify/2 accepts and email_address and response_type atom (:full or :minimal) and returns a three member tuple containing the results of the check..
Examples
iex> Debounce.verify("info@example.com", :full)
{:ok,
%{
"balance" => "3198.6",
"debounce" => %{
"code" => "7",
"did_you_mean" => "",
"email" => "info@example.com",
"free_email" => "false",
"photo" => "",
"reason" => "Unknown",
"result" => "Unknown",
"role" => "true",
"send_transactional" => "1"
},
"success" => "1"
}, "info@example.com"}
iex> Debounce.verify("info@example.com", :minimal)
{:ok, "unknown", "info@example.com"}