Package weibo4j

Examples of weibo4j.Timeline


public class GetRepostWeekly {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONArray status = tm.getRepostWeekly();
      Log.logInfo(status.toString());

    } catch (WeiboException e) {
      e.printStackTrace();
    }
View Full Code Here


public class GetMentionsIds {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONObject ids = tm.getFriendsTimelineIds();
      Log.logInfo(ids.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class GetCommentsWeekly {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONArray status = tm.getCommentsWeekly();
      Log.logInfo(status.toString());

    } catch (WeiboException e) {
      e.printStackTrace();
    }
View Full Code Here

  public static void main(String[] args) {   
    String access_token = args[0];
    String id =  args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      Status status = tm.Destroy(id);
      Log.logInfo(status.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    String id = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONObject ids = tm.getRepostTimelineIds(id);
      Log.logInfo(ids.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    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());
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    String statuses = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      Status status = tm.UpdateStatus(statuses);
      Log.logInfo(status.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }  }
View Full Code Here

  public static void main(String[] args) {
    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());
View Full Code Here

  public static void main(String[] args) {
    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());
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    String id = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      Status status = tm.showStatus(id);

        Log.logInfo(status.toString());

    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of weibo4j.Timeline

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.