get("account/profile/" . $identifier); $this->unsetHeader('If-Match'); return $response; } /** * Retrieve a user's information by mail * * @param string $identifier * * @return array */ public function retrieveUserByMail($identifier = "") { if (empty($identifier)) { return array(); } $query = http_build_query(array('mail' => $identifier)); $response = $this->get("account/profile/?" . $query); $this->unsetHeader('If-Match'); return $response; } /** * Retrieve a user's information by UID * * @param string $identifier * * @return array */ public function retrieveUserByUID($identifier = "") { if (empty($identifier)) { return array(); } $query = http_build_query(array('uid' => $identifier)); $response = $this->get("account/profile/?" . $query); $this->unsetHeader('If-Match'); return $response; } /** * Retrieve a user's projects * * @param string $identifier * * @return array */ public function retrieveUserProjects($identifier = "") { if (empty($identifier)) { return array(); } $response = $this->get('account/profile/' . $identifier. '/projects'); $this->unsetHeader('If-Match'); return $response; } /** * Trigger an user deletion process * * @param string $identifier * * @return array|Response */ public function targetedActionDeleteUser($identifier){ if (empty($identifier)) { return array(); } $response = $this->post('account/profile/' . $identifier. '/user_delete_request'); return $response; } }