Skip to content

Commit 211f8ad

Browse files
committed
added comments
1 parent ebf9d5c commit 211f8ad

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cleantalk.class.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,15 @@ function stringFromUTF8($str, $data_codepage = null){
960960
}
961961
}
962962

963+
/**
964+
* Function gets access key automatically
965+
*
966+
* @param string website admin email
967+
* @param string website host
968+
* @param string website platform
969+
* @return type
970+
*/
971+
963972
function getAutoKey($email, $host, $platform)
964973
{
965974
$request=Array();
@@ -972,6 +981,13 @@ function getAutoKey($email, $host, $platform)
972981
return $result;
973982
}
974983

984+
/**
985+
* Function gets information about renew notice
986+
*
987+
* @param string api_key
988+
* @return type
989+
*/
990+
975991
function noticePaidTill($api_key)
976992
{
977993
$request=Array();
@@ -982,6 +998,16 @@ function noticePaidTill($api_key)
982998
return $result;
983999
}
9841000

1001+
/**
1002+
* Function sends raw request to API server
1003+
*
1004+
* @param string url of API server
1005+
* @param array data to send
1006+
* @param boolean is data have to be JSON encoded or not
1007+
* @param integer connect timeout
1008+
* @return type
1009+
*/
1010+
9851011
function sendRawRequest($url,$data,$isJSON=false,$timeout=3)
9861012
{
9871013
$result=null;

0 commit comments

Comments
 (0)