gs.group.topic.digest.send
code¶
The code for the script that sends out the digest works in two main stages: first it gets the list of groups, and then it sends a digest. Both raise the same exceptions.
The list of groups¶
The list of groups is retrieved using a web-hook that returns a
list of groups as a JSON blob. The DIGEST_GROUPS_URI
specifies the location of the web-hook, relative to the root of
the site, while the get_digest_groups()
function retrieves
the list of groups.
-
gs.group.messages.topic.digest.send.script.
DIGEST_GROUPS_URI
= u'/gs-group-messages-topic-digest-groups.html'¶ The URL of the web-hook that returns (as a JSON blob) the list of groups that need a digest.
Sending a digest¶
The digest is actually send by a web-hook. This hook is located
at SEND_DIGEST_URI
and is triggered by the
send_digest()
function.
-
gs.group.messages.topic.digest.send.script.
SEND_DIGEST_URI
= u'/gs-group-messages-topic-digest-send.html'¶ The URL of the web-hook used to send a digest to a group