You can use the SendResult functionality through the SendResult API.Integrated SendResult API to validate email addresses SendResult API request rate limit of 60 beats per minute If you have any other related needs, please contact us directly at service@sendresult.com.
You need to generate an access password to confirm subsequent requests.Specify this access password in the "auth-value" field when making the request.
POST https://open.sendresult.com/api/getAuthorization
| api_key | account apiKey |
public function generateAuthStr(): void
{
$api_key = trim(input('api_key/s', ''));
$request_ts = time();
$secret = '***'; //Signature key. Please contact the technical staff for obtaining.
$rand_str = CodeExtend::random(6, 3);
$sign_str = hash('sha256', sprintf(
'api_key=%s&random=%s&time=%d&api_secret=%s',
$api_key, $rand_str, $request_ts, $secret,
));
$this->success(lang("Success"),
[
'sign' => $sign_str,
'api_key' => $api_key,
'random' => $rand_str,
'time' => $request_ts,
'api_secret' => $secret
]);
}
{
"code": 1,
"info": "Success",
"data": {
"auth-value": "4c3f788e3883e9aa3775783de92712d947f63b22b08cbd749f46790f7b796546",
"api_key": "2d231a927da62066895b324617d4a101",
"auth-rand-str": "o5mrt5",
"auth-time-stamp": 1750234000
}
}| auth-value | auth-value |
| api_key | account apiKey |
| auth-rand-str | The required random string for the interface |
| auth-time-stamp | Required timestamp for the interface |