Module HotCRP

exception Error of string
type t = {
  1. url : string;
  2. token : string;
}
val make : token:string -> string -> t
val headers : t -> Cohttp.Header.t
val get : t -> string -> (string * string) list -> string Lwt.t
val post : t -> string -> (string * string) list -> (string * string list) list -> string Lwt.t
module JSON : sig ... end

JSON interface.

val reviews : t -> int -> (string * string) list list Lwt.t
val tags : t -> int -> string list Lwt.t

Retrieve tags.

type author = {
  1. email : string option;
  2. first : string option;
  3. last : string option;
  4. affiliation : string option;
  5. contact : bool;
}

An author.

val to_author : Yojson__Safe.t -> author
type paper = {
  1. title : string;
  2. abstract : string;
  3. authors : author list;
}

A paper.

val paper : t -> int -> paper Lwt.t

Get a paper.

val add_tags : t -> int -> string list -> unit Lwt.t

Add tags.

val add_tag : t -> int -> string -> unit Lwt.t

Add a tag.

val delete_tags : t -> int -> string list -> unit Lwt.t

Delete tags.

val delete_tag : t -> int -> string -> unit Lwt.t

Delete a tag.

val all_tags : t -> string list Lwt.t

All available tags.

val search_ids : t -> string -> int list Lwt.t

Perform a search returning paper ids.

val events : t -> string list Lwt.t
val whoami : t -> string Lwt.t

Identity of current user.

module Blocking : sig ... end

Blocking interface.