You are here

public function Cleantalk::get_2s_blacklists_db in Anti Spam by CleanTalk 8.3

Function gets information about spam active networks

Parameters

string api_key:

Return value

JSON/array

File

src/lib/Cleantalk/Antispam/Cleantalk.php, line 721

Class

Cleantalk
Cleantalk class create request

Namespace

Drupal\cleantalk\lib\Cleantalk\Antispam

Code

public function get_2s_blacklists_db($api_key) {
  $request = array();
  $request['method_name'] = '2s_blacklists_db';
  $request['auth_key'] = $api_key;
  $url = 'https://api.cleantalk.org';
  $result = CleantalkHelper::sendRawRequest($url, $request);
  return $result;
}