You are here

public static function API::method__security_linksscan_logs 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_linksscan_logs()

* Wrapper for security_linksscan_logs API method. * Send data to the cloud about scanned links. * *

Parameters

string $api_key: * @param string $scan_time Datetime of scan * @param bool $scan_result * @param int $links_total * @param array $links_list * @param bool $do_check * * @return array|bool|mixed

File

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

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_linksscan_logs($api_key, $scan_time, $scan_result, $links_total, $links_list, $do_check = true) {
  $request = array(
    'auth_key' => $api_key,
    'method_name' => 'security_linksscan_logs',
    'started' => $scan_time,
    'result' => $scan_result,
    'total_links_found' => $links_total,
    'links_list' => $links_list,
  );
  $result = static::send_request($request);
  $result = $do_check ? static::check_response($result, 'security_linksscan_logs') : $result;
  return $result;
}