Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document /groups/ID/posts #143

Closed
Protected opened this issue Apr 9, 2024 · 3 comments
Closed

Document /groups/ID/posts #143

Protected opened this issue Apr 9, 2024 · 3 comments

Comments

@Protected
Copy link

Protected commented Apr 9, 2024

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)

@Protected
Copy link
Author

Oops, looks like someone already mentioned this in vrchatapi/specification#198

@Tresvian
Copy link

I'm working on it, vrchatapi/specification#315

@jellejurre
Copy link

closed by vrchatapi/specification#315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants