コード例 #1
0
 /**
  * @throws RequestException
  * @param SearchRequest $searchRequest
  * @return SearchResult
  */
 public function sendSearchRequest(SearchRequest $searchRequest)
 {
     $requestUrl = $this->createRequestUrl(static::ACTION_SEARCH) . '?' . $searchRequest->getQuery();
     $response = $this->client->get($requestUrl);
     return new SearchResult($response->getBody());
 }
コード例 #2
0
 public function build()
 {
     return SearchRequest::build($this);
 }