delete() public method

根据ID删除微博消息。注意:只能删除自己发布的信息。
对应API:{@link http://open.weibo.com/wiki/2/statuses/destroy statuses/destroy}
public delete ( integer $id ) : array
$id integer 要删除的微博ID
return array
Example #1
0
          <div id="tip_error" class="row">
            <div class="span7">
              <div class="error">
  由于新浪微博 API 的请求限制,服务暂时无法使用,请稍后重试,谢谢 :)
              </div>
            </div>
            <div class="span1">
            </div>
          </div>
HTML;
}
// Delete weibo by ids
if (isset($_POST['del_ids']) && !empty($_POST['del_ids']) && empty($tip)) {
    $id_arr = explode(',', $_POST['del_ids']);
    foreach ($id_arr as $id) {
        $result = $c->delete($id);
        if (isset($result['error']) && !empty($result['error'])) {
            // fail
            $err_content = "错误原因:" . $result['error'] . " -- 错误代码:" . $result['error_code'];
            error_log("id:" . $id . " -- error:" . $result['error'] . " -- error_code:" . $result['error_code'] . "\n\n");
            $tip = <<<HTML
          <div id="tip_error" class="row">
            <div class="span7">
              <div class="error">
                删除失败:{$err_content}
              </div>
            </div>
            <div class="span1">
            </div>
          </div>
HTML;