Examples of destroyComment()


Examples of weibo4j.Comments.destroyComment()

    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cid = args[1];
    Comments cm = new Comments();
    try {
      Comment com = cm.destroyComment(cid);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of weibo4j.Comments.destroyComment()

    String access_token = args[0];
    String cid = args[1];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    try {
      Comment com = cm.destroyComment(cid);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of weibo4j.Weibo.destroyComment()

    try {
      Thread.sleep(1000); // avoid flush server
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    Comment cmt2 = weibo.destroyComment(cmt.getId());
    System.out.println("delete " + cmt2);
    }
}
View Full Code Here

Examples of weibo4j.Weibo.destroyComment()

          String sid = status.getId()+"";
          System.out.println(sid + " : "+ status.getText()+"  "+status.getCreatedAt());
          Comment comment = weibo.updateComment("发表评论", sid, null);
          System.out.println(comment.getId() + " : " + comment.getText() + "  " + comment.getCreatedAt());
          Thread.sleep(1000);
          weibo.destroyComment(comment.getId());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.