package activitypub_client

  1. Overview
  2. Docs
ActivityPub client in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-activitypub-0.1.0.tar.bz2
md5=332e6cab89ed63fda379aba37e00c40b
sha512=b6e5fe4948fdbe1d63227adc834c783821b609691c8db24438a8f76c5f6a2c60d1ecbd385baf1029901225abe2031d9aa994a0ed0321ea8082b3281e35552bb0

doc/activitypub_client/Activitypub_client/Acti/index.html

Module Activitypub_client.ActiSource

Posting activities

Sourcemodule AP = Activitypub
Sourcemodule Log = AP.Log
module AS = Rdf.Activitypub
Sourcetype AP.E.error +=
  1. | Accept_no_actor of Iri.t
    (*

    When an Accept activity is POSTed without an actor object

    *)
Sourcetype post_result = (Iri.t option, AP.E.error) result Lwt.t
Sourcetype audience_post_fun = ?to_:Iri.t list -> ?bto:Iri.t list -> ?cc:Iri.t list -> ?bcc:Iri.t list -> ?audience:Iri.t -> ?public:bool -> unit -> post_result
Sourcetype announce_fun = Iri.t -> audience_post_fun
Sourcetype create_fun = Rdf.Graph.graph -> Rdf.Term.term -> ?in_reply_to:Iri.t list -> audience_post_fun
Sourcetype delete_fun = Iri.t -> post_result
Sourcetype dislike_fun = Iri.t -> post_result
Sourcetype follow_fun = Iri.t -> post_result
Sourcetype like_fun = Iri.t -> post_result
Sourcetype undo_fun = Iri.t -> post_result
Sourcetype update_fun = Iri.t -> Rdf.Graph.graph -> post_result
Sourcemodule type T = sig ... end

This is the signature of the module we get after applying the Make functor on an Object.T: functions to POST activities, using module O to act as a given actor.

Sourcemodule Make (O : Object.T) : T
OCaml

Innovation. Community. Security.