protected function getHttpRequest()
 {
     $request = new TingClientHttpRequest();
     $request->setBaseUrl($this->baseUrl);
     $request->setMethod(TingClientHttpRequest::GET);
     $request->setGetParameter('action', 'ADHLRequest');
     $request->setGetParameter('outputType', 'json');
     if ($this->isbn) {
         $request->setGetParameter('isbn', $this->isbn);
     }
     if ($this->numResults) {
         $request->setGetParameter('numRecords', $this->numResults);
     }
     if ($this->sex) {
         switch ($this->sex) {
             case TingClientObjectRecommendationRequest::SEX_MALE:
                 $sex = 'm';
                 break;
             case TingClientObjectRecommendationRequest::SEX_FEMALE:
                 $sex = 'k';
         }
         $request->setGetParameter($sex);
     }
     if ($this->minAge || $this->maxAge) {
         $minAge = $this->minAge ? $this->minAge : 0;
         $maxAge = $this->maxAge ? $this->maxAge : 100;
         $request->setGetParameter('minAge', $minAge);
         $request->setGetParameter('maxAge', $maxAge);
     }
     if ($this->fromDate || $this->toDate) {
         $request->setGetParameter('from', $this->fromDate);
         $request->setGetParameter('to', $this->toDate);
     }
     return $request;
 }
 protected function getHttpRequest()
 {
     $request = new TingClientHttpRequest();
     $request->setBaseUrl($this->baseUrl);
     $request->setMethod(TingClientHttpRequest::GET);
     $request->setGetParameter('action', 'openSpell');
     $request->setGetParameter('outputType', 'json');
     if ($this->word) {
         $request->setGetParameter('word', $this->word);
     }
     if ($this->numResults) {
         $request->setGetParameter('number', $this->numResults);
     }
     return $request;
 }
 protected function getHttpRequest()
 {
     $httpRequest = new TingClientHttpRequest();
     $httpRequest->setMethod(TingClientHttpRequest::GET);
     $httpRequest->setBaseUrl($this->baseUrl);
     $httpRequest->setGetParameter('action', 'search');
     $httpRequest->setGetParameter('outputType', 'json');
     $methodParameterMap = array('query' => 'query', 'facets' => 'facets.facetName', 'numFacets' => 'facets.numberOfTerms', 'format' => 'format', 'start' => 'start', 'numResults' => 'stepValue', 'sort' => 'sort', 'allObjects' => 'allObjects', 'agency' => 'agency');
     foreach ($methodParameterMap as $method => $parameter) {
         $getter = 'get' . ucfirst($method);
         if ($value = $this->{$getter}()) {
             $httpRequest->setParameter(TingClientHttpRequest::GET, $parameter, $value);
         }
     }
     return $httpRequest;
 }
 protected function getHttpRequest()
 {
     $httpRequest = new TingClientHttpRequest();
     $httpRequest->setMethod(TingClientHttpRequest::GET);
     $httpRequest->setBaseUrl($this->baseUrl);
     $httpRequest->setGetParameter('outputType', 'json');
     $httpRequest->setGetParameter('action', 'openScan');
     $methodParameterMap = array('field' => 'field', 'prefix' => 'prefix', 'numResults' => 'limit', 'lower' => 'lower', 'upper' => 'upper', 'minFrequency' => 'minFrequency', 'maxFrequency' => 'maxFrequency');
     foreach ($methodParameterMap as $method => $parameter) {
         $getter = 'get' . ucfirst($method);
         if ($value = $this->{$getter}()) {
             $httpRequest->setParameter(TingClientHttpRequest::GET, $parameter, $value);
         }
     }
     return $httpRequest;
 }