You are here

public static function API::method__get_antispam_report 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__get_antispam_report()

* Wrapper for get_antispam_report API method. * Gets spam report. * *

Parameters

string $host website host: * @param integer $period report days * @param boolean $do_check * * @return array|bool|mixed

File

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

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__get_antispam_report($host, $period = 1, $do_check = true) {
  $request = array(
    'method_name' => 'get_antispam_report',
    'hostname' => $host,
    'period' => $period,
  );
  $result = static::send_request($request);
  $result = $do_check ? static::check_response($result, 'get_antispam_report') : $result;
  return $result;
}