You can search for identifiers within the package.
in-package search v0.2.0
textrazor
Textrazor.Client
type t = {
api_key : string;
secure : bool;
use_eu_endpoint : bool;
}
Data structure for clients.
type response = (Yojson.Safe.t, string) result
val create : ?secure:bool -> ?use_eu_endpoint:bool -> string -> t
Creates a new client.
Whether to use HTTPS. Defaults to true.
true
Whether to use TextRazor's Europe API endpoint. Defaults to false.
false
API key to use for requests
val get : string -> t -> response
Performs a GET request against the given path.
val post_form : string -> ?params:(string * string list) list -> t -> response
Performs a POST request against the given path.