/** * Get Auth User Info * * @throws JSONException If error occurred * @return {@link JSONObject} */ public JSONObject getMyInfo() throws JSONException { return oClient.get("/hr/v2/users/me"); }
/** * Get Specific User Info * * @param userReference User reference * @throws JSONException If error occurred * @return {@link JSONObject} */ public JSONObject getSpecific(String userReference) throws JSONException { return oClient.get("/hr/v2/users/" + userReference); }
public Users(OAuthClient client) { oClient = client; oClient.setEntryPoint(ENTRY_POINT); }