public static void main(String[] args) {

    SinaWeiboAPI api = new SinaWeiboAPI(new HttpClientDaoImpl());
    //		SinaDomain sinaDomain = api.statusesUserTimelineByUid("1732243641", "0", "0", 20, 1, 0, 0,
    // 0);
    SinaDomain sinaDomain =
        api.statusesUserTimelineByScreenName("付强bber", "0", "0", 20, 1, 0, 0, 0);
    System.out.println(JsonUtils.toJson(sinaDomain));
  }
示例#2
0
  @Override
  public void run() {

    while (System.currentTimeMillis() < now + 3600000) {
      COUNT.addAndGet(1);
      System.out.println(COUNT.get() + ":" + api.friendshipsFollowers("1642591402", 9, 1, 0));
    }
  }