SaeTClientV2::comment_destroy_batch PHP Method

comment_destroy_batch() public method

注意:只能删除自己发布的评论,发部微博的用户不可以删除其他人的评论。
对应API:{@link http://open.weibo.com/wiki/2/comments/destroy_batch comments/destroy_batch}
public comment_destroy_batch ( string $ids ) : array
$ids string 需要删除的评论ID,用半角逗号隔开,最多20个。
return array
    function comment_destroy_batch($ids)
    {
        $params = array();
        if (is_array($ids) && !empty($ids)) {
            foreach ($ids as $k => $v) {
                $this->id_format($ids[$k]);
            }
            $params['cids'] = join(',', $ids);
        } else {
            $params['cids'] = $ids;
        }
        return $this->oauth->post('comments/destroy_batch', $params);
    }
SaeTClientV2