Skip to content

Commit

Permalink
Merge pull request #23 from Sinepel/master
Browse files Browse the repository at this point in the history
Restore : Added configable search index
  • Loading branch information
joedawson authored Jan 14, 2019
2 parents f637369 + 92b3913 commit 38a1af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AmazonECS.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public function search($query, $page = 1)
{
$query = rawurlencode($query);
if ($page == 1) {
$params = $this->params(['Keywords' => $query, 'SearchIndex' => 'All', 'ResponseGroup' => $this->response_group]);
$params = $this->params(['Keywords' => $query, 'SearchIndex' => config('amazon.search_index'), 'ResponseGroup' => $this->response_group]);
} else {
$params = $this->params(['Keywords' => $query, 'SearchIndex' => 'All', 'ResponseGroup' => $this->response_group, 'ItemPage'=>$page]);
$params = $this->params(['Keywords' => $query, 'SearchIndex' => config('amazon.search_index'), 'ResponseGroup' => $this->response_group, 'ItemPage'=>$page]);
}
$string = $this->buildString($params);
$signature = $this->signString($string);
Expand Down

0 comments on commit 38a1af8

Please sign in to comment.