Skip to content

panglesd/hockmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An ocaml library to access the hackmd API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages