} catch (InterruptedException e) {
e.printStackTrace();
}
// add a comment for the status
long sid = status.getId();
Comment cmt = weibo.updateComment("评论1 " + new java.util.Date(), String.valueOf(sid), null);
weibo.getComments(String.valueOf(sid));
weibo.updateComment("评论2 " + new java.util.Date(), String.valueOf(sid), null);
try {
Thread.sleep(1000); // avoid flush server
} catch (InterruptedException e) {
e.printStackTrace();
}
Comment cmt2 = weibo.destroyComment(cmt.getId());
System.out.println("delete " + cmt2);
}