Build an Agent which is used for making Amazon API requests. Args
should contain at least the following keys (obtained from Amazon):
associate_tag
- string
access_key
- string
secret_key
- string
It may include an optional host
key which defaults
to "webservices.amazon.com".
Perform an "ItemLookup" call using Amazon's Product Advertising API.
Additional API arguments are passed via Args. A common use case is to
specify response groups:
item_lookup(Agent,'B00004TN1Z',Item, _{'ResponseGroup':"Offers"}).
Find how many offers in Condition are available. Item is a value
produced by item_lookup/3, which must include the response group
"OfferSummary" (directly or indirectly).
Condition should be one of used
, new
or collectible
. Leaving
Condition unbound iterates all conditions on backtracking.
Find the lowest price for an offer in Condition. The price is
represented as an integer number of pennies, when using US Dollars.
An equivalent unit is used for other currencies. Item is a value
produced by item_lookup/3, which must include the response group
"OfferSummary" (directly or indirectly).
Condition should be one of used
, new
or collectible
. Leaving
Condition unbound iterates all conditions on backtracking.