Пример #1
0
 /**
  * Get Auth User Info
  *
  * @throws JSONException If error occurred
  * @return {@link JSONObject}
  */
 public JSONObject getMyInfo() throws JSONException {
   return oClient.get("/hr/v2/users/me");
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 public Users(OAuthClient client) {
   oClient = client;
   oClient.setEntryPoint(ENTRY_POINT);
 }