public static function API::method__security_backend_logs in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/lib/Cleantalk/Common/API.php \Cleantalk\Common\API::method__security_backend_logs()
* Wrapper for get_antispam_report API method. * Function gets spam domains report * *
Parameters
string $api_key: * @param array $logs * @param bool $do_check * * @return array|bool|mixed
File
- src/
lib/ Cleantalk/ Common/ API.php, line 552
Class
- API
- CleanTalk API class. Mostly contains wrappers for API methods. Check and send mehods. Compatible with any CMS.
Namespace
Cleantalk\CommonCode
public static function method__security_backend_logs($api_key, $logs, $do_check = true) {
$request = array(
'method_name' => 'security_backend_logs',
'auth_key' => $api_key,
'logs' => json_encode($logs),
'total_logs' => count($logs),
);
$result = static::send_request($request);
$result = $do_check ? static::check_response($result, 'security_backend_logs') : $result;
return $result;
}