public static function API::method__send_empty_feedback in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/Common/API.php \Cleantalk\Common\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 API::method__send_empty_feedback()
- CleantalkSettingsForm::validateForm in src/
Form/ CleantalkSettingsForm.php - Form validation handler.
File
- src/
lib/ Cleantalk/ Common/ API.php, line 251
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__send_empty_feedback($api_key, $agent, $do_check = true) {
$request = array(
'method_name' => 'send_feedback',
'auth_key' => $api_key,
'feedback' => 0 . ':' . $agent,
);
$result = static::send_request($request);
$result = $do_check ? static::check_response($result, 'send_feedback') : $result;
return $result;
}