API Generic Consumer in OCaml (+ example of check_invite consumer)