Package weibo4j.org.json

Examples of weibo4j.org.json.JSONObject


  public static void main(String[] args) {
    String access_token =args[0];
    Account am = new Account();
    am.client.setToken(access_token);
    try {
      JSONObject uid = am.getUid();
      Log.logInfo(uid.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


    Timeline tm = new Timeline();
//    tm.client.setToken(access_token);
    tm.setToken(access_token);
    try {
//      JSONObject ids = tm.getUserTimelineIdsByUid(args[1]);
      JSONObject ids = tm.getUserTimelineIdsByUid("1450317544");
      Log.logInfo(ids.toString());
      JSONArray array = (JSONArray) ids.get("statuses");

      ArrayList<String> list = new ArrayList<String>();
      for (int i = 0; i < array.length(); ++i) {
        list.add(array.get(i).toString());
      }
View Full Code Here

    String access_token = args[0];
    Timeline tm = new Timeline();
    tm.setToken(access_token);
    tm.client.setToken(access_token);
    try {
      JSONObject status = tm.getFriendsTimelineIds();
      Log.logInfo(status.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

  }
View Full Code Here

    Timeline tm = new Timeline();
//    tm.client.setToken(access_token);
    tm.setToken(access_token);
    try {
//      JSONObject ids = tm.getUserTimelineIdsByUid(args[1]);
      JSONObject ids = tm.getUserTimelineIdsByUid("1450317544");
      Log.logInfo(ids.toString());
      JSONArray array = (JSONArray) ids.get("statuses");

      ArrayList<String> list = new ArrayList<String>();
      for (int i = 0; i < array.length(); ++i) {
        list.add(array.get(i).toString());
      }
View Full Code Here

TOP

Related Classes of weibo4j.org.json.JSONObject

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.