package hockmd
A library to access hackmd's api
Install
Dune Dependency
Authors
Maintainers
Sources
hockmd-0.1.0.tbz
sha256=72215a2a33d7c6976995caccad8ea066c220156231956ef0d30b3fadcdd195b3
sha512=2085c1c85b01265237c9b587269f972632bc6c398d2fa72b8bba95fcf508a9fe8e1d73876b873852e068a912764ed6dc0a9cb5b5d4c0ab27b5ca6e15e47ce3f9
Description
A library to access hackmd's api
Published: 04 Jul 2022
README
hockmd
An ocaml library to access the hackmd API.
Installation
Using Opam
opam install hockmd
Usage
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
Dependencies (8)
-
ppx_yojson_conv
< "v0.16.0"
- yojson
- ppx_deriving
-
lwt
>= "5.3.0"
- cohttp-lwt-unix
- cohttp
-
dune
>= "2.0"
-
ocaml
>= "4.08.0"
Used by
None
Conflicts (1)
-
result
< "1.5"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page