SaeTClientV2::reply PHP Method

reply() public method

为防止重复,发布的信息与最后一条评论/回复信息一样话,将会被忽略。
对应API:{@link http://open.weibo.com/wiki/2/comments/reply comments/reply}
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);
    }
SaeTClientV2