SendResult API

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.

Authentication

You need to generate an access password to confirm subsequent requests.Specify this access password in the "auth-value" field when making the request.

Request
POST https://open.sendresult.com/api/getAuthorization
Input parameters
api_keyaccount apiKey
Sample Code
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
]);
}
Receipt sample
{
"code": 1,
"info": "Success",
"data": {
"auth-value": "4c3f788e3883e9aa3775783de92712d947f63b22b08cbd749f46790f7b796546",
"api_key": "2d231a927da62066895b324617d4a101",
"auth-rand-str": "o5mrt5",
"auth-time-stamp": 1750234000
}
}
Output parameters
auth-valueauth-value
api_keyaccount apiKey
auth-rand-strThe required random string for the interface
auth-time-stampRequired timestamp for the interface