package bookaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7af47997c54d37239a8249697720796f26f529bf602ea5fb3c211ae4f0f8b51f
md5=d18eec930a00a2ba442531d3cc12dea1
doc/bookaml/Bookaml_amazon/index.html
Module Bookaml_amazon
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.
Exceptions
exception No_match of Bookaml_isbn.tInner modules
module Locale : sig ... endDefinition 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 sexp_of_credential : credential -> Sexplib0.Sexp.tval credential_of_sexp : Sexplib0.Sexp.t -> credentialSearch criteria expected by some ENGINE functions. The search criteria must be created beforehand by function make_criteria.
val sexp_of_criteria : criteria -> Sexplib0.Sexp.tval criteria_of_sexp : Sexplib0.Sexp.t -> criteriaPublic functions and values
val make_credential :
locale:Locale.t ->
associate_tag:string ->
access_key:string ->
secret_key:string ->
credentialConstructs the AWS credential that is required for ENGINE functions.
val make_criteria :
?title:string ->
?author:string ->
?publisher:string ->
?keywords:string ->
unit ->
criteriaConstructs 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.
Public module types
module type XMLHANDLER = sig ... endmodule type HTTPGETTER = sig ... endmodule type ENGINE = sig ... endPublic functors
module Make
(Xmlhandler : XMLHANDLER)
(Httpgetter : HTTPGETTER) :
ENGINE with type 'a monad = 'a Httpgetter.Monad.t