You are here

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

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

* Function gets information about renew notice * *

Parameters

string api_key: * @return type

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

File

src/CleantalkHelper.php, line 365

Class

CleantalkHelper
Cleantalk's hepler class

Code

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