Synopsis

:- use_module(library(amazon_api)).
?- build_agent(Agent, ...),
   item_lookup(Agent, 'B00000DMAX', Item),
   title(Item, Title).
Title = 'Mario Kart 64'.

Description

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.

Changes in this Version

Installation

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

author
- Michael Hendricks <michael@ndrix.org>
license
- BSD

Prolog files

amazon_api.pl
build_agent/2Build an Agent which is used for making Amazon API requests.
item_lookup/3Like item_lookup/4 with no arguments.
item_lookup/4Perform an "ItemLookup" call using Amazon's Product Advertising API.
offer_inventory/3Find how many offers in Condition are available.
offer_low_price/3Find the lowest price for an offer in Condition.
title/2An item's title.