protected function getSessionId($url, $method = 'POST')
    {
        if ($this->makeRequest($url, $method) === false) {
            $this->printErrorMessage('Could not fetch a valid session id.');
            return false;
        }
        $location = $this->getResponseHeader('Location');
        $locationParameters = explode('/', $location);
        $id = end($locationParameters);
        if (strpos($id, '?') !== false) {
            // cars live pricing return apikey within the session for some reason.
            [$id, $others] = explode('?', $id, 2);
        }
        return $id;
    }