public reply ( integer $sid, string $text, integer $cid, integer $without_mention, integer $comment_ori ) : array | ||
$sid | integer | 微博id |
$text | string | 评论内容。 |
$cid | integer | 评论id |
$without_mention | integer | 1:回复中不自动加入“回复@用户名”,0:回复中自动加入“回复@用户名”.默认为0. |
$comment_ori | integer | 当评论转发微博时,是否评论给原微博,0:否、1:是,默认为0。 |
return | array |
function reply($sid, $text, $cid, $without_mention = 0, $comment_ori = 0)
{
$this->id_format($sid);
$this->id_format($cid);
$params = array();
$params['id'] = $sid;
$params['comment'] = $text;
$params['cid'] = $cid;
$params['without_mention'] = $without_mention;
$params['comment_ori'] = $comment_ori;
return $this->oauth->post('comments/reply', $params);
}