ApiRateLimits(JSONObject json) throws WeiboException {
		try {
			api = json.getString("api");
			limit = json.getInt("limit");
			limitTimeUnit = json.getString("limit_time_unit");
			remainingHits = json.getLong("remaining_hits");
		} catch (JSONException jsone) {
			throw new WeiboException(jsone.getMessage() + ":" + json.toString(), jsone);
		}
	}