Examples of JSONArray


Examples of twitter4j.JSONArray

  public static JSONObject parseEventTargetObject(JSONObject json) throws JSONException {
    return json.getJSONObject("target_object");
  }

  public static long[] parseFriendList(JSONObject json) throws JSONException {
    JSONArray friends = json.getJSONArray("friends");
    long[] friendIds = new long[friends.length()];
    for (int i = 0; i < friendIds.length; ++i) {
      friendIds[i] = friends.getLong(i);
    }
    return friendIds;
  }
View Full Code Here

Examples of twitter4j.internal.org.json.JSONArray

     * Package visibility only!
     *
     * @return the JSON String representation of this
     */
    String asParameterValue() {
        JSONArray jsonArray = new JSONArray();
        for (Annotation annotation : annotations) {
            jsonArray.put(annotation.asJSONObject());
        }
        return jsonArray.toString();
    }
View Full Code Here

Examples of twitter4j.org.json.JSONArray

            JSONObject trendsJson = json.getJSONObject("trends");
            trends = new ArrayList<Trends>(trendsJson.length());
            Iterator ite = trendsJson.keys();
            while (ite.hasNext()) {
                String key = (String) ite.next();
                JSONArray array = trendsJson.getJSONArray(key);
                Trend[] trendsArray = jsonArrayToTrendArray(array);
                if (key.length() == 19) {
                    // current trends
                    trends.add(new Trends(res, asOf, parseDate(key
                            , "yyyy-MM-dd HH:mm:ss"), trendsArray));
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.