Skip to content

Commit d5e0ec2

Browse files
committed
Added method get_2s_blacklists_db().
1 parent d0b2418 commit d5e0ec2

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

cleantalk.class.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Cleantalk base class
44
*
5-
* @version 2.0.1
5+
* @version 2.1.0
66
* @package Cleantalk
77
* @subpackage Base
88
* @author Cleantalk team (welcome@cleantalk.org)
@@ -1017,6 +1017,21 @@ function stringFromUTF8($str, $data_codepage = null){
10171017

10181018
return $str;
10191019
}
1020+
1021+
/**
1022+
* Function gets information about spam active networks
1023+
*
1024+
* @param string api_key
1025+
* @return JSON/array
1026+
*/
1027+
public function get_2s_blacklists_db ($api_key) {
1028+
$request=Array();
1029+
$request['method_name'] = '2s_blacklists_db';
1030+
$request['auth_key'] = $api_key;
1031+
$url='https://api.cleantalk.org';
1032+
$result=sendRawRequest($url,$request);
1033+
return $result;
1034+
}
10201035
}
10211036

10221037
/**

0 commit comments

Comments
 (0)