Page
Library
Module
Module type
Parameter
Class
Class type
Source
Bookaml_amazonModule 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_match of [ `ISBN10 | `ISBN13 ] Bookaml_ISBN.tmodule Locale : sig ... endDefinition of the various supported Amazon locales.
type credential_t = {locale : Locale.t;associate_tag : string;access_key : string;secret_key : string;}Credential for Amazon Web Services.
Search criteria expected by some ENGINE functions. The search criteria must be created beforehand by function make_criteria.
val make_credential :
locale:Locale.t ->
associate_tag:string ->
access_key:string ->
secret_key:string ->
credential_tConstructs the AWS credential that is required for ENGINE functions.
val make_criteria :
?title:string ->
?author:string ->
?publisher:string ->
?keywords:string ->
unit ->
criteria_tConstructs the search criteria that may be given to 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.
module type XMLHANDLER = sig ... endmodule type HTTPGETTER = sig ... endmodule type ENGINE = sig ... endmodule Make
(Xmlhandler : XMLHANDLER)
(Httpgetter : HTTPGETTER) :
ENGINE with type 'a monad_t = 'a Httpgetter.Monad.t