private function autoRenewAuthToken(ApiResponse $response, $header = 'X-Auth-Token')
    {
        $headers = $response->getHeaders();
        if(!empty($headers[$header])) {
            $this->setAuthToken($headers[$header]);
        }
    }