public static function CleantalkHelper::api_method__sfw_logs in Anti Spam by CleanTalk 7.5
Same name and namespace in other branches
- 7.4 src/CleantalkHelper.php \CleantalkHelper::api_method__sfw_logs()
1 call to CleantalkHelper::api_method__sfw_logs()
File
- src/
CleantalkHelper.php, line 275
Class
- CleantalkHelper
- Cleantalk's hepler class
Code
public static function api_method__sfw_logs($api_key, $data, $do_check = true) {
$request = array(
'auth_key' => $api_key,
'method_name' => 'sfw_logs',
'data' => json_encode($data),
'rows' => count($data),
'timestamp' => time(),
);
$result = self::api_send_request($request);
$result = $do_check ? self::api_check_response($result, 'sfw_logs') : $result;
return $result;
}