paapi-client is a library for Amazon's Product Advertising API.
Please check https://webservices.amazon.com/paapi5/documentation/ for the current version
- supports all of the SOAP API operations using JAX-WS
- automatic retries on
503 Service Unavailable
- configurable number of retries and time between requests
- error checking
cc.freiberg.paapi.client.PaapiClientImpl
is the main class to send requests to AWS. The constructor needs all of the following properties:
- Marketplace (e.g.
DE
,US
etc) - Access Key Id
- Secret Access Key
- Associate Tag (e.g.
freiberg-123
)
final String accessKeyId = "<YOUR_ACCESS_KEY_ID>";
final String endpoint = DE";
final String secretAccessKeyId = "<YOUR_SECRET_ACCESS_KEY>";
final String tag = "<YOUR_TAG>";
final PaapiClient client = new PaapiClientImpl(endpoint, accessKeyId, secretAccessKeyId, tag);
final ItemLookupRequest request = new ItemLookupRequest();
request.getItemId().add("B00E6TYD6I");
request.getResponseGroup().add("Small");
final List<Items> itemLookup = client.itemLookup(request);
- JDK 1.8
- Commons Codec
- slf4j
The contents of the com.ecs.client package is a product of using wsimport
against AWSECommerceService.wsdl