Package weibo4j.model

Examples of weibo4j.model.StatusWapper


    String id = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getRepostTimeline(id);
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getPublicTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getUserTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getFriendsTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getHomeTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getRepostByMe();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getMentions();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getBilateralTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
      }
      System.out.println(status.getNextCursor());
      System.out.println(status.getPreviousCursor());
      System.out.println(status.getTotalNumber());
      System.out.println(status.getHasvisible());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    Weibo weibo = new Weibo();
    weibo.setToken(at.getAccessToken());
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getHomeTimeline();
      return status.getTotalNumber();
    } catch (WeiboException e) {
      e.printStackTrace();
    }
    return 0;
  }
View Full Code Here

      if (page.getSinceId() >= 0) {
        paging.setSinceId(page.getSinceId());
      }

      logger.info("paging:" + paging);
      StatusWapper status = tm.getHomeTimeline(0,
          BlogFeature.getIntValue(feature), paging);
      if (null != status) {
        List<Blog> blogs = new ArrayList<Blog>();
        for (Status statu : status.getStatuses()) {
          Blog blog = new Blog();
          blog.setAuthor(statu.getUser().getName());
          blog.setDate(statu.getCreatedAt());
          blog.setText(statu.getText());
          blog.setId(Long.parseLong(statu.getId()));
View Full Code Here

TOP

Related Classes of weibo4j.model.StatusWapper

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.