Ejemplo n.º 1
0
 /**
  * 获取当前用户发出的评论
  *
  * @param args
  */
 public static void main(String[] args) {
   System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
   System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
   try {
     Weibo weibo = getWeibo(true, args);
     List<Comment> comments = weibo.getCommentsTimeline();
     for (Comment comment : comments) {
       System.out.println(comment.toString());
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
 }