You are here

public static function API::method__request_checksums in Anti Spam by CleanTalk 9.1.x

Same name and namespace in other branches
  1. 8.4 src/lib/Cleantalk/Common/API.php \Cleantalk\Common\API::method__request_checksums()

* Wrapper for get_antispam_report API method. * Force server to update checksums for specific plugin\theme * *

Parameters

string $api_key: * @param string $plugins_and_themes_to_refresh * @param bool $do_check * * @return array|bool|mixed

File

src/lib/Cleantalk/Common/API.php, line 610

Class

API
CleanTalk API class. Mostly contains wrappers for API methods. Check and send mehods. Compatible with any CMS.

Namespace

Cleantalk\Common

Code

public static function method__request_checksums($api_key, $plugins_and_themes_to_refresh, $do_check = true) {
  $request = array(
    'method_name' => 'request_checksums',
    'auth_key' => $api_key,
    'data' => $plugins_and_themes_to_refresh,
  );
  $result = static::send_request($request);
  $result = $do_check ? static::check_response($result, 'request_checksums') : $result;
  return $result;
}