From 987e8b78bc0c84d57c63e14a5bf96736a4fd47b3 Mon Sep 17 00:00:00 2001 From: Carlos Escribano Date: Wed, 1 Jun 2016 16:48:28 +0200 Subject: [PATCH] Updated version number. Signed-off-by: Carlos Escribano --- lib/doofinder_api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/doofinder_api.php b/lib/doofinder_api.php index 69475dc..5c9e66b 100644 --- a/lib/doofinder_api.php +++ b/lib/doofinder_api.php @@ -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 @@ -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 @@ -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); }