Package weibo4j.org.json

Examples of weibo4j.org.json.JSONArray


    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String tag = args[1];
    Tags tm  = new Tags();
    try {
      JSONArray tags = tm.createTags(tag);
      Log.logInfo(tags.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cids = args[1];
    Comments cm = new Comments();
    try {
      JSONArray comment = cm.getCommentShowBatch(cids);
      Log.logInfo(comment.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uids =  args[1];
    Users um = new Users();
    try {
      JSONArray user = um.getUserCount(uids);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cids = args[1];
    Comments cm = new Comments();
    try {
      JSONArray com = cm.destoryCommentBatch(cids);
      Log.logInfo(com.toString());
    } 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 {
      JSONArray status = tm.getRepostDaily();
      Log.logInfo(status.toString());

    } 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 {
      JSONArray status = tm.getRepostWeekly();
      Log.logInfo(status.toString());

    } 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 {
      JSONArray status = tm.getCommentsWeekly();
      Log.logInfo(status.toString());

    } 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 {
      JSONArray status = tm.getCommentsDaily();
      Log.logInfo(status.toString());

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

    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uids = args[1];
    Friendships fm = new Friendships();
    try {
      JSONArray user = fm.getRemark(uids);
      System.out.println(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

  }
View Full Code Here

        }
    }

    public static List<User> constructUsers(Response res) throws WeiboException {
      try {
            JSONArray list = res.asJSONArray();
            int size = list.length();
            List<User> users = new ArrayList<User>(size);
            for (int i = 0; i < size; i++) {
                users.add(new User(list.getJSONObject(i)));
            }
            return users;
        } catch (JSONException jsone) {
            throw new WeiboException(jsone);
        } catch (WeiboException te) {
View Full Code Here

TOP

Related Classes of weibo4j.org.json.JSONArray

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.