You are here

public static function CleantalkHelper::api_method__notice_validate_key in Anti Spam by CleanTalk 7.4

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

* Function gets information about renew notice * *

Parameters

string api_key: * @return type

1 call to CleantalkHelper::api_method__notice_validate_key()
cleantalk_settings_form_validate in src/Form/CleantalkSettingsForm.php

File

src/CleantalkHelper.php, line 346

Class

CleantalkHelper
Cleantalk's hepler class

Code

public static function api_method__notice_validate_key($api_key, $do_check = true) {
  $request = array(
    'method_name' => 'notice_validate_key',
    'auth_key' => $api_key,
  );
  $result = self::api_send_request($request);
  $result = $do_check ? self::api_check_response($result, 'notice_validate_key') : $result;
  return $result;
}