package hockmd

  1. Overview
  2. Docs
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

Dev Dependencies (2)

  1. odoc with-doc
  2. alcotest with-test

Used by

None

Conflicts (1)

  1. result < "1.5"