Module Api11.Cursor

module Cursor: sig .. end


HTTP parameters


We handle HTTP parameters as (string * string option) list

Coercing to the normal HTTP header type, (string * string) list.

Base communication


To live with other errors like `HTTP, Json decoding erros are tagged with `Json.

api post meth fmt ...(format args)... params oauth

post : Parser of JSON. If you want to have the raw JSON, use fun x -> `Ok x. meth : GET or POST fmt : piece of path, you can use Printf % format params : the type is params oauth : OAuth value

Argment handling


to_string functions of option values


Argument generators and consumers


optional argument function accumulation

"runs" optional argument function optf with the init empty parameters, then give the final set of parameters to consumer

General optional argument generators

val get_stream : (((string * string option) list -> Oauth.t -> 'a) -> 'b list -> 'c) ->
('d, Api_intf.Json.t) Meta_conv.Types.Decoder.t ->
('d Meta_conv.Open.mc_embeded -> 'e list) ->
((string * string option) list ->
Oauth.t ->
[< `Error of [> `Json of Api_intf.Json.t Meta_conv.Error.t ] as 'f
| `Ok of Api_intf.Json.t ]) ->
([> `Error of 'f | `Ok of 'e ] Spotlib.Spot.Stream.t -> 'a) -> 'c