Package weibo4j

Examples of weibo4j.Comments


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


public class DestroyComment {

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

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

public class GetCommentShowBatch {

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

public class GetCommentById {

  public static void main(String[] args) {
    String access_token = "2.00RQs9XC0gdCQY15dd6eda18QiojdE";
    String id = args[1];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    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 class DestroyCommentBatcn {

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

public class GetCommentToMe {

  public static void main(String[] args) {
    String access_token = args[0];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    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 class GetCommentTimeline {

  public static void main(String[] args) {
    String access_token = args[0];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    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 class GetCommentByMe {

  public static void main(String[] args) {
    String access_token = args[0];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    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 class GetCommentMentions {

  public static void main(String[] args) {
    String access_token = args[0];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    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

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.