获取在线人数
GET/v1/community-presence
返回过去五分钟内打开每个社区的访客数量。
请求
curl -g "https://api.nogitsu.com/v1/community-presence?communityIds={id}"参数
communityIds查询必填
以逗号分隔的社区 ID。
文本
响应
请求成功时返回 200 和以下 JSON:
items对象 列表onlineCount整数0 到 9007199254740991
communityId文本 (uuid)
错误
与所有操作一样,此操作在参数无效时可能返回 400,找不到内容时返回 404,请求过多时返回 429。所有错误的结构都相同。