Package weibo4j

Examples of weibo4j.Comments


  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cids = args[1];
    Comments cm = new Comments();
    try {
      JSONArray comment = cm.getCommentShowBatch(cids);
      Log.logInfo(comment.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String id = args[1];
    Comments cm =new Comments();
    try {
      CommentWapper comment = cm.getCommentById(id);
      for(Comment c : comment.getComments()){
        Log.logInfo(c.toString());
      }
      System.out.println(comment.getTotalNumber());
      System.out.println(comment.getNextCursor());
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cids = args[1];
    Comments cm = new Comments();
    try {
      JSONArray com = cm.destoryCommentBatch(cids);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Comments cm = new Comments();
    try {
      CommentWapper comment = cm.getCommentToMe();
      for(Comment c :comment.getComments()){
        Log.logInfo(c.toString());
      }
      System.out.println(comment.getTotalNumber());
      System.out.println(comment.getNextCursor());
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Comments cm = new Comments();
    try {
      CommentWapper comment = cm.getCommentTimeline();
      for(Comment c : comment.getComments()){
        Log.logInfo(c.toString());
      }
      System.out.println(comment.getTotalNumber());
      System.out.println(comment.getNextCursor());
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Comments cm = new Comments();
    try {
      CommentWapper comment = cm.getCommentByMe();
      for(Comment c : comment.getComments()){
        Log.logInfo(c.toString());
      }
      System.out.println(comment.getNextCursor());
      System.out.println(comment.getPreviousCursor());
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Comments cm = new Comments();
    try {
      CommentWapper comment = cm.getCommentMentions();
      for(Comment c : comment.getComments()){
        Log.logInfo(c.toString());
      }
      System.out.println(comment.getNextCursor());
      System.out.println(comment.getPreviousCursor());
View Full Code Here

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

  public static void main(String[] args) {
    String access_token = args[0];
    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

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String comments = args[1];
    String id = args[2];
    Comments cm = new Comments();
    try {
      Comment comment = cm.createComment(comments, id);
      Log.logInfo(comment.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of weibo4j.Comments

Copyright © 2018 www.massapicom. 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.