You are here

public static function API::method__security_firewall_data_file 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__security_firewall_data_file()

* Wrapper for security_firewall_data_file API method. * Gets URI with security firewall data in .csv.gz file to write to the local database. * *

Parameters

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

File

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

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__security_firewall_data_file($api_key, $do_check = true) {
  $request = array(
    'auth_key' => $api_key,
    'method_name' => 'security_firewall_data_file',
  );
  $result = static::send_request($request);
  $result = $do_check ? static::check_response($result, 'security_firewall_data_file') : $result;
  return $result;
}