From 820e42a4f4e0f60a38cfd8ac96f59733d22d6995 Mon Sep 17 00:00:00 2001 From: Carlos Escribano Date: Thu, 12 May 2016 14:23:11 +0200 Subject: [PATCH] Fix management api endpoint. Signed-off-by: Carlos Escribano --- lib/doofinder_management_api.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/doofinder_management_api.php b/lib/doofinder_management_api.php index cea9bd6..97412be 100644 --- a/lib/doofinder_management_api.php +++ b/lib/doofinder_management_api.php @@ -41,9 +41,8 @@ function __construct($apiKey){ $clusterToken = explode('-', $apiKey); $this->clusterRegion = $clusterToken[0]; $this->token = $clusterToken[1]; - $this->baseManagementUrl = $this->clusterRegion."-".self::MANAGEMENT_DOMAIN_SUFFIX. - "/v".self::MANAGEMENT_VERSION; -// $this->baseManagementUrl = 'localhost:8000/api/v1'; + $this->baseManagementUrl = "https://" . $this->clusterRegion . self::MANAGEMENT_DOMAIN_SUFFIX . "/v" . self::MANAGEMENT_VERSION; + // $this->baseManagementUrl = 'localhost:8000/api/v1'; } function managementApiCall($method='GET', $entryPoint='', $params=null, $data=null){