module FriendsAndFollowers: functor (
A
:
sig
val dir : string
"friends" or "followers"
end
) ->
sig
.. end
Parameters: |
A |
: |
sig
val dir : string (** "friends" or "followers" *)
end
|
|
type
ids = {
}
val json_of_ids : ids -> Api_intf.Json.t
val ids_of_json : (ids, Api_intf.Json.t) Meta_conv.Types.Decoder.t
val ids_of_json_exn : (ids, Api_intf.Json.t)
Meta_conv.Types.Decoder.t_exn
val ocaml_of_ids : ids -> Ocaml.t
val ids_of_ocaml : (ids, Ocaml.t) Meta_conv.Types.Decoder.t
val ids_of_ocaml_exn : (ids, Ocaml.t) Meta_conv.Types.Decoder.t_exn
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
type
users = {
}
val json_of_users : users -> Api_intf.Json.t
val users_of_json : (users, Api_intf.Json.t) Meta_conv.Types.Decoder.t
val users_of_json_exn : (users, Api_intf.Json.t)
Meta_conv.Types.Decoder.t_exn
val ocaml_of_users : users -> Ocaml.t
val users_of_ocaml : (users, Ocaml.t) Meta_conv.Types.Decoder.t
val users_of_ocaml_exn : (users, Ocaml.t) Meta_conv.Types.Decoder.t_exn
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