code: public function setApiKey($apiKey)
      {
          $this->apiKey = $apiKey;
          list(, $datacentre) = explode('-', $this->apiKey);
          $this->apiUrl = str_replace('<dc>', $datacentre, $this->apiUrl);
      }
docs: Method to Set Api Key
  @param string $apiKey