Skip to content

Commit

Permalink
Fix management api endpoint.
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Escribano <[email protected]>
  • Loading branch information
carlosescri committed May 12, 2016
1 parent 5f3366a commit 820e42a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/doofinder_management_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 820e42a

Please sign in to comment.