/** * Build the base url for the resource * * @return string */ public function buildBaseUrl() { $session = $this->client->getSession(); if (is_null($session)) { return 'https://login.twinfield.com/webservices'; } return $session->getCluster(); }