:- use_module(library(amazon_api)). ?- build_agent(Agent, ...), item_lookup(Agent, 'B00000DMAX', Item), title(Item, Title). Title = 'Mario Kart 64'.
Make API calls to Amazon Web Services. This version has been tested with Amazon's Product Advertising API, but request/5 should work with other Amazon APIs too.
Using SWI-Prolog 6.3 or later:
?- pack_install(amazon_api).
This module uses semantic versioning.
Source code available and pull requests accepted at http://github.com/mndrix/amazon_api
amazon_api.pl | ||
---|---|---|
build_agent/2 | Build an Agent which is used for making Amazon API requests. | |
item_lookup/3 | Like item_lookup/4 with no arguments. | |
item_lookup/4 | Perform an "ItemLookup" call using Amazon's Product Advertising API. | |
offer_inventory/3 | Find how many offers in Condition are available. | |
offer_low_price/3 | Find the lowest price for an offer in Condition. | |
title/2 | An item's title. |