如何从 API 获取 unseen/unread 通知计数?

How can I get an unseen/unread notification count from the API?

我正在使用 PHP。我想要 unread/unseen 从 PHP 计数而不使用 JavaScript 实时通知库。我该怎么做?

我在 JavaScript 库中看到您得到以下信息:

"data": {
    "deleted": "array activities or aggregated activities",
    "new": "array activities or aggregated activities",
    "unread":"int only sent for notification feeds",
    "unseen":"int only sent for notification feeds",
    "published_at":"time in iso format",
},

您可以使用 PHP 在服务器端接收更新的唯一方法是请求访问网络挂钩或 Amazon SQS 更新。

有关此功能的更多信息,请参阅文档 here