0
を解析し、応答、私の要求は次のようになります。アマゾンAPI ItemLookupでは、たとえば私はamazon.comで利用できる「iPhone 7」のすべてASINsを取得したい、アマゾンAPI「ItemLookupでは要望、取得応答を行っている私のWebアプリケーションで
public class Application {
public static void main(String[] args) {
List<String> foundASINs = new ArrayList<>();
Map<String, String> params = new HashMap<>();
params.put("Operation", "ItemSearch");
params.put("ResponseGroup", "ItemIds");
params.put("Keywords", "iphone 7");
params.put("SearchIndex", "Wireless");
AwsRequest request = new AwsRequest();
String res="";
try {
request.getRequest(params);
とAwsRequestクラス:
public Document getRequest (Map<String, String> params) throws IOException, NoSuchAlgorithmException, InvalidKeyException, ParserConfigurationException, SAXException {
params.put("Service", "AWSECommerceService");
params.put("AssociateTag", ASSOCIATE_TAG);
params.put("Version", "2016-09-27");
SignedRequestsHelper helper = SignedRequestsHelper.getInstance(ENDPOINT, AWS_ACCESS_KEY_ID, AWS_SECRET_KEY);
String requestUrl = helper.sign(params);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
doc = db.parse(requestUrl);
return doc;
}
ので、私は、XMLドキュメントとして応答を取得しています。 すべて大丈夫ですが、なぜ最大10のASINが得られるのでしょうか?ドキュメントのTotalResultsプロパティをチェックすると、10000以上の結果があるはずですが、応答では10個しか表示されません。どのように私は他の人を得ることができる?