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.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


        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

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.