Module Bookaml_amazon

module Bookaml_amazon: sig .. end
Module providing facilities for finding information about books. It works by invoking the Amazon Product Advertising API, and therefore most of its functions require the associate tag, access key, and secret key available to registered users of Amazon Web Services.


exception No_response
exception No_match of Bookaml_isbn.t

Inner modules

module Locale: sig .. end
Definition of the various supported Amazon locales.

Type definitions

type credential = {
   locale : Locale.t;
   associate_tag : string;
   access_key : string;
   secret_key : string;
Credential for Amazon Web Services.
val credential_of_sexp : Sexplib.Sexp.t -> credential
val sexp_of_credential : credential -> Sexplib.Sexp.t
type criteria 
Search criteria expected by some Bookaml_amazon.ENGINE functions. The search criteria must be created beforehand by function Bookaml_amazon.make_criteria.
val criteria_of_sexp : Sexplib.Sexp.t -> criteria
val sexp_of_criteria : criteria -> Sexplib.Sexp.t

Public functions and values

val make_credential : locale:Locale.t ->
associate_tag:string ->
access_key:string -> secret_key:string -> credential
Constructs the AWS credential that is required for Bookaml_amazon.ENGINE functions.
val make_criteria : ?title:string ->
?author:string ->
?publisher:string -> ?keywords:string -> unit -> criteria
Constructs the search criteria that may be given to Bookaml_amazon.ENGINE functions. The search criteria may consist of any combination of title, author, publisher, or generic keywords. If none are specified, exception Invalid_arg is raised.

Public module types

module type XMLHANDLER = sig .. end
module type HTTPGETTER = sig .. end
module type ENGINE = sig .. end

Public functors

module Make: 
functor (Xmlhandler : XMLHANDLER) ->
functor (Httpgetter : HTTPGETTER) -> ENGINE with type 'a monad = 'a Httpgetter.Monad.t