An ocaml library to access the hackmd API.
opam install hockmd
The API of the library follows closely the one of the hackmd API.
You will need a token as explained here.
The library returns types enclosed in result
and promises
. It is advised to make use of ocaml syntax to avoid a too heavy syntax!
let token = "........."
let res =
let++ notes = Hockmd.notes token in
List.iter (fun note -> print_endline note.title) notes