public static function CleantalkHelper::api_method_send_empty_feedback in Anti Spam by CleanTalk 7.5
Same name and namespace in other branches
- 7.4 src/CleantalkHelper.php \CleantalkHelper::api_method_send_empty_feedback()
* Function sends empty feedback for version comparison in Dashboard * *
Parameters
string api_key: * @param string agent-version * @param bool perform check flag * @return mixed (STRING || array('error' => true, 'error_string' => STRING))
1 call to CleantalkHelper::api_method_send_empty_feedback()
File
- src/
CleantalkHelper.php, line 479
Class
- CleantalkHelper
- Cleantalk's hepler class
Code
public static function api_method_send_empty_feedback($api_key, $agent, $do_check = true) {
$request = array(
'method_name' => 'send_feedback',
'auth_key' => $api_key,
'feedback' => 0 . ':' . $agent,
);
$result = self::api_send_request($request);
$result = $do_check ? self::api_check_response($result, 'send_feedback') : $result;
return $result;
}