/* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ /* Licensed under the Apache License, Version 2.0. */ /** * Download the following artifacts and add to your projects classpath: * o httpclient-4.5.5.jar * o httpcore-4.4.9.jar * o commons-logging-1.2.jar * o json-20180130.jar * Put your Secret Key in place of ********** * Make sure AWSV4Auth Class is available in same package */ package com.amazon.paapi.scratchpad; import java.util.Map; import java.util.TreeMap; import java.nio.charset.StandardCharsets; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils; import org.json.JSONArray; import org.json.JSONObject; import com.amazon.paapi.scratchpad.AWSV4Auth; public class GetItems { private stat...
Posts
Showing posts from September, 2025