public static function API::method__get_2s_blacklists_db in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/lib/Cleantalk/Common/API.php \Cleantalk\Common\API::method__get_2s_blacklists_db()
* Wrapper for 2s_blacklists_db API method. * Gets data for SpamFireWall. * *
Parameters
string $api_key: * @param null|string $out Data output type (JSON or file URL)
string $version API method version: * @param boolean $do_check * * @return mixed|string|array('error' => STRING)
File
- src/
lib/ Cleantalk/ Common/ API.php, line 33
Class
- API
- CleanTalk API class. Mostly contains wrappers for API methods. Check and send mehods. Compatible with any CMS.
Namespace
Cleantalk\CommonCode
public static function method__get_2s_blacklists_db($api_key, $out = null, $version = '1_0', $do_check = true) {
$request = array(
'method_name' => '2s_blacklists_db',
'auth_key' => $api_key,
'out' => $out,
'version' => $version,
);
$result = static::send_request($request);
$result = $do_check ? static::check_response($result, '2s_blacklists_db') : $result;
return $result;
}