package hockmd

  1. Overview
  2. Docs

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
OCaml

Innovation. Community. Security.