0
结果我现在用的宝石amazon_product在亚马逊搜索书籍。 搜索是完全正确的,但它让我只有前10本书的名单。 我想获得所有的搜索结果并对它们进行分页。我怎样才能做到这一点?PAGINATE从亚马逊产品搜索
我的代码看起来像这样,
req = AmazonProduct["us"]
req.configure do |c|
c.key = "KEY"
c.secret = "SECRET_KEY"
c.tag = "TAG"
end
resp = req.search("Books", :power => params[:book][:search_term], :sort => "reviewrank")
@books = resp.to_hash["Items"]["Item"]
最大itemPage上API版本2011-08-01(电流)设定为10 http://docs.aws.amazon.com/AWSECommerceService/latest/DG/PagingThroughResults.html – AlessMascherpa