Example #1
0
 protected function runStructuredQuery(Query $query)
 {
     $input = $query->getStructuredQuery() + ['format' => $this->getConverter()->getFormat()];
     $response = $this->client->get(sprintf('%s/search?%s', $this->endpoint, http_build_query($input)), $this->headers);
     return $this->getConverter()->convert($response->getContent());
 }