You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ever since multiple posts/announcements per group became possible, the /groups/ID/announcement endpoint has been insufficient. The website uses /groups/ID/posts to retrieve the post history of a group.
Query parameters:
n: Amount of results (like for group members). Seems to default to 5. The website issues multiple calls to the endpoint as you scroll down. offset: Which result to return from, defaulting to 0.
Results appear sorted by reverse creation date by default.
Returns:
{
"total": AMOUNT,
"posts": [GroupAnnouncement]
}
Where AMOUNT is the total amount of existing posts, not the amount of returned posts.
The GroupAnnouncement object is outdated in the website. The following fields are missing (returned equally by both endpoints):
editorId: string visibility: string (defaults to "group", there's presumably some value for public posts) roleIds: [string] (assumed)
The text was updated successfully, but these errors were encountered:
Ever since multiple posts/announcements per group became possible, the
/groups/ID/announcement
endpoint has been insufficient. The website uses/groups/ID/posts
to retrieve the post history of a group.Query parameters:
n
: Amount of results (like for group members). Seems to default to 5. The website issues multiple calls to the endpoint as you scroll down.offset
: Which result to return from, defaulting to 0.Results appear sorted by reverse creation date by default.
Returns:
Where
AMOUNT
is the total amount of existing posts, not the amount of returned posts.The GroupAnnouncement object is outdated in the website. The following fields are missing (returned equally by both endpoints):
editorId: string
visibility: string
(defaults to"group"
, there's presumably some value for public posts)roleIds: [string]
(assumed)The text was updated successfully, but these errors were encountered: