summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-06-01 17:07:23 +0200
committerGravatar grunfink2025-06-01 17:07:23 +0200
commita136f7533d223865adec2a0794b9c290be631290 (patch)
tree537302213763bb9ee85f2bff8d24528ca33646ea
parentUpdated documentation. (diff)
downloadsnac2-a136f7533d223865adec2a0794b9c290be631290.tar.gz
snac2-a136f7533d223865adec2a0794b9c290be631290.tar.xz
snac2-a136f7533d223865adec2a0794b9c290be631290.zip
Updated documentation.
-rw-r--r--doc/snac.119
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/snac.1 b/doc/snac.1
index 5fcb0c6..d4e9af7 100644
--- a/doc/snac.1
+++ b/doc/snac.1
@@ -417,11 +417,24 @@ https://$SNAC_HOST/oauth/x-snac-get-token
417.Ss Webhook for notifications 417.Ss Webhook for notifications
418Since version 2.78, users can set the URL to a webhook that will receive 418Since version 2.78, users can set the URL to a webhook that will receive
419an HTTP POST with every notification (in JSON format). This can be used to 419an HTTP POST with every notification (in JSON format). This can be used to
420implement some automation whenever a new activity happens, like autorepliers 420implement some automation whenever a new activity happens, like autorepliers,
421or chatbots or whatever. The 421chatbots, interactive textual games or whatever. The
422.Pa examples/ 422.Pa examples/
423subdirectory contains a tiny Python program that implements an auto-follower 423subdirectory contains a tiny Python program that implements an auto-follower
424for every new follow. 424for every new follow. The JSON notification object includes the following data:
425.Bd -literal -offset indent
426id: a unique notification identifier
427actor: the origin actor id
428target: the target actor id
429date: the notification date
430message: the full ActivityPub action JSON object
431objid: the object identifier (extracted from message, may be null)
432type: the action type (extracted from message)
433utype: the action subtype (extracted from message, may be null)
434uid: the user identifier (account name)
435basedir: the server base directory
436baseurl: the server base URL
437.Ed
425.Pp 438.Pp
426.Sh ENVIRONMENT 439.Sh ENVIRONMENT
427.Bl -tag -width Ds 440.Bl -tag -width Ds