Skip to content

Commit

Permalink
Updated version number.
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Escribano <[email protected]>
  • Loading branch information
carlosescri committed Jun 1, 2016
1 parent e66a027 commit 987e8b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/doofinder_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DoofinderApi{
const DEFAULT_RPP = 10;
const DEFAULT_PARAMS_PREFIX = 'dfParam_';
const DEFAULT_API_VERSION = '4';
const VERSION = '5.2.3';
const VERSION = '5.2.5';

private $api_key = null; // user API_KEY
private $hashid = null; // hashid of the doofinder account
Expand Down Expand Up @@ -162,7 +162,7 @@ private function apiCall($entry_point='search', $params=array()){
$args = http_build_query($this->sanitize($params)); // remove any null value from the array

$url = $this->url.'/'.$this->apiVersion.'/'.$entry_point.'?'.$args;

$session = curl_init($url);
curl_setopt($session, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($session, CURLOPT_HEADER, false); // Tell curl not to return headers
Expand All @@ -177,7 +177,7 @@ private function apiCall($entry_point='search', $params=array()){
}
throw new DoofinderException($httpCode.' - '.$response, $httpCode);
}

public function getOptions(){
return $this->apiCall('options/'.$this->hashid);
}
Expand Down

0 comments on commit 987e8b7

Please sign in to comment.