You are here

public static function CleantalkHelper::api_method__get_antispam_report in Anti Spam by CleanTalk 7.5

Same name and namespace in other branches
  1. 7.4 src/CleantalkHelper.php \CleantalkHelper::api_method__get_antispam_report()

* Function gets spam report * *

Parameters

string website host: * @param integer report days * @return type

File

src/CleantalkHelper.php, line 386

Class

CleantalkHelper
Cleantalk's hepler class

Code

public static function api_method__get_antispam_report($host, $period = 1) {
  $request = array(
    'method_name' => 'get_antispam_report',
    'hostname' => $host,
    'period' => $period,
  );
  $result = self::api_send_request($request);

  // $result = $do_check ? self::api_check_response($result, 'get_antispam_report') : $result;
  return $result;
}