Package weibo4j.model

Examples of weibo4j.model.StatusWapper


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


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

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

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

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

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

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

        list.add(array.get(i).toString());
      }

      System.out.println(list.size());

      StatusWapper wrapper = tm.getUserTimelineByUid("1450317544", new Paging(1), 0, 0);
      System.out.println(wrapper.getStatuses().size());

      wrapper = tm.getUserTimelineByUid("1450317544", new Paging(2), 0, 0);
      System.out.println(wrapper.getStatuses().size());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

//    String access_token = args[0];
    String access_token = "2.009q4JaB0boMkW8e5efb98210m4BKY";
    Timeline tm = new Timeline();
    tm.client.setToken(access_token);
    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

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.