package ozulip
All checked builds pass sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
OCaml bindings to Zulip API
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.1.tar.gz
md5=4173fefee440773dd0f8d7db5a2e01e5
sha512=cb53870eb8d41f53cf6de636d060fe1eee6c39f7c812eacb803b33f9998242bfb12798d4922e7633aa3035cf2ab98018987b380fb3f380f80d7270e56359c5d8
Description
README
ozulip
OCaml bindings to Zulip API.
Messages
Send message
let _ =
let open Ozulip in
let conf = init "www.domain.com" "email@email.com" "key" in
let dest = Messages.stream_name "general" "welcom topic" in
Messages.send_message conf dest "New message from `ozulip`" Upload a file
let _ =
let open Ozulip in
let conf = init "www.domain.com" "email@email.com" "key" in
let%lwt uri = Messages.upload_file conf "/path/to/your/file" in
let dest = Messages.stream_name "general" "welcom topic" in
let msg = Format.sprintf "Check out the [this file](%s)!" uri in
Messages.send_message conf dest msgEdit message
let _ =
let open Ozulip in
let conf = init "www.domain.com" "email@email.com" "key" in
let dest = Messages.stream_name "general" "welcom topic" in
let%lwt mess_id = Messages.send_message conf dest "New message from `ozulip`" in
Messages.edit_message ~content:"New content of my message" mess_idDelete message
let _ =
let open Ozulip in
let conf = init "www.domain.com" "email@email.com" "key" in
let dest = Messages.stream_name "general" "welcom topic" in
let%lwt mess_id = Messages.send_message conf dest "New message from `ozulip`" in
Messages.delete_message mess_idHigh-level user interaction
let _ =
let open Ozulip in
let conf = init ~domain ~email ~key in
Events.interact ~trusted_emails:["you@example.com"] conf (fun msg ->
if String.lowercase_ascii msg = "ping"
then Lwt.return_some "pong"
else Lwt.return_none)
Dependencies (12)
Dev Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building ozulip with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page