joedawson / amazon-ecs

With Laravel, search and lookup Amazon products easily.
MIT License
52 stars 26 forks source link

can't add more parameters #10

Closed Xoshbin closed 7 years ago

Xoshbin commented 7 years ago

Dear @JoeDawson I already tried and I thought that I can add more parameters into the search method inside AmazonECS class like these lines below but it seems I can't,

$params = $this->params(['Keywords' => $query, 'SearchIndex' => $category, 'ResponseGroup' => 'Images,ItemAttributes,Offers'**, 'Sort' => '-price']**);

And I tried to retrieve all the items inside a category by bypassing the search query like below: $amazon_results = \Amazon::search('', 'Electronics')->json(); and that's not possible too.

And I can't remove the search 'keyword' inside the search method when I think as I read it on the Amazon API manuals it's possible. $params = $this->params(['SearchIndex' => $category, 'ResponseGroup' => 'Images,ItemAttributes,Offers']);

Xoshbin commented 7 years ago

I was wrong sorry, it's possible to add more parameters as you want.