* @param $limited_to Limit the plurk only to some users (also known as private plurking). limited_to should be a Array list of friend ids, e.g. limited_to = array(3,4,66,34) will only be plurked to these user ids.
* @param string $lang The plurk's language.
* @param int $no_commetns If set to 1, then responses are disabled for this plurk. If set to 2, then only friends can respond to this plurk.
- * @return boolean
+ * @return JSON object
* @see /API/Timeline/plurkAdd
*/
function add_plurk($lang = 'en', $qualifier = 'says', $content = 'test from roga-plurk-api', $limited_to = NULL, $no_comments = 0)
{
if( ! $this->is_login) exit(PLURK_NOT_LOGIN);
- if (mb_strlen($content) > 140)
- {
- $this->log('this message should shorter than 140 characters.');
- }
-
$array = array(
'api_key' => $this->api_key,
'qualifier' => $qualifier,
@@ -671,8 +659,13 @@
// roga.2009-12-14: need to confirm.
if (isset($limited_to)) $array['limited_to'] = json_encode($limited_to);