Verify emails
curl --request POST \
--url https://connect.pingback.com/v2/email-verification/{email} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"port": 25,
"fqdn": "mail.example.org",
"sender": "name@example.org",
"timeout": 10000,
"attempts": 3
}
'import requests
url = "https://connect.pingback.com/v2/email-verification/{email}"
payload = {
"port": 25,
"fqdn": "mail.example.org",
"sender": "name@example.org",
"timeout": 10000,
"attempts": 3
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
port: 25,
fqdn: 'mail.example.org',
sender: 'name@example.org',
timeout: 10000,
attempts: 3
})
};
fetch('https://connect.pingback.com/v2/email-verification/{email}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://connect.pingback.com/v2/email-verification/{email}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'port' => 25,
'fqdn' => 'mail.example.org',
'sender' => 'name@example.org',
'timeout' => 10000,
'attempts' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://connect.pingback.com/v2/email-verification/{email}"
payload := strings.NewReader("{\n \"port\": 25,\n \"fqdn\": \"mail.example.org\",\n \"sender\": \"name@example.org\",\n \"timeout\": 10000,\n \"attempts\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://connect.pingback.com/v2/email-verification/{email}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"port\": 25,\n \"fqdn\": \"mail.example.org\",\n \"sender\": \"name@example.org\",\n \"timeout\": 10000,\n \"attempts\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.pingback.com/v2/email-verification/{email}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"port\": 25,\n \"fqdn\": \"mail.example.org\",\n \"sender\": \"name@example.org\",\n \"timeout\": 10000,\n \"attempts\": 3\n}"
response = http.request(request)
puts response.read_body{
"message": "Email verified",
"data": {
"email": "example@email.com",
"valid": true,
"message": "Valid email (ignored SMTP verification"
}
}{
"error": "User is not authorized to access this resource with an explicit deny in an identity-based policy.",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "FORBIDDEN"
}{
"error": "Email is missing",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "EMAIL_IS_NECESSARY"
}Verificação de email
Verificar Email
Validação de endereços de e-mail e o retorno dos resultados da verificação.
POST
/
email-verification
/
{email}
Verify emails
curl --request POST \
--url https://connect.pingback.com/v2/email-verification/{email} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"port": 25,
"fqdn": "mail.example.org",
"sender": "name@example.org",
"timeout": 10000,
"attempts": 3
}
'import requests
url = "https://connect.pingback.com/v2/email-verification/{email}"
payload = {
"port": 25,
"fqdn": "mail.example.org",
"sender": "name@example.org",
"timeout": 10000,
"attempts": 3
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
port: 25,
fqdn: 'mail.example.org',
sender: 'name@example.org',
timeout: 10000,
attempts: 3
})
};
fetch('https://connect.pingback.com/v2/email-verification/{email}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://connect.pingback.com/v2/email-verification/{email}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'port' => 25,
'fqdn' => 'mail.example.org',
'sender' => 'name@example.org',
'timeout' => 10000,
'attempts' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://connect.pingback.com/v2/email-verification/{email}"
payload := strings.NewReader("{\n \"port\": 25,\n \"fqdn\": \"mail.example.org\",\n \"sender\": \"name@example.org\",\n \"timeout\": 10000,\n \"attempts\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://connect.pingback.com/v2/email-verification/{email}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"port\": 25,\n \"fqdn\": \"mail.example.org\",\n \"sender\": \"name@example.org\",\n \"timeout\": 10000,\n \"attempts\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.pingback.com/v2/email-verification/{email}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"port\": 25,\n \"fqdn\": \"mail.example.org\",\n \"sender\": \"name@example.org\",\n \"timeout\": 10000,\n \"attempts\": 3\n}"
response = http.request(request)
puts response.read_body{
"message": "Email verified",
"data": {
"email": "example@email.com",
"valid": true,
"message": "Valid email (ignored SMTP verification"
}
}{
"error": "User is not authorized to access this resource with an explicit deny in an identity-based policy.",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "FORBIDDEN"
}{
"error": "Email is missing",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "EMAIL_IS_NECESSARY"
}Autorizações
Parâmetros de caminho
Corpo
application/json
Esta página foi útil?
⌘I