delete('account/user_delete_request/' . $id); } return array(); } /** * Query UserDeleteRequest entities * * @param array $query * * @return Response */ public function indexUserDeleteRequest($query = array()) { $query_string = ""; if (!empty($query) || !is_array($query)) { $query_string = '?' . http_build_query($query); } $response = $this->get("account/user_delete_request/" . $query_string); return $response; } /** * Update an UserDeleteRequest entity * * @param int $id * @param string $status * * @return Response */ public function updateDeleteRequest($id = "", $status = "") { if (!empty($id) && is_numeric($id) && is_numeric($status)) { return $this->put('account/user_delete_request/' . $id, json_encode(array('status' => $status))); } return array(); } }