如何从API获取看不见/未读的通知计数?

时间:2022-02-15 06:28:19

I am using PHP. I want the unread/unseen count from PHP without using the JavaScript real time notifications library. How would I do this?

我正在使用PHP。我想要PHP中未读/未看到的计数,而不使用JavaScript实时通知库。我该怎么办?

I see in the JavaScript library you get back the following information:

我在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",
},

1 个解决方案

#1


1  

The only way you can receive updates server-side with PHP is by requesting access to web-hooks or Amazon SQS updates.

使用PHP接收服务器端更新的唯一方法是请求访问Web挂钩或Amazon SQS更新。

More information about this feature is available in the documentation here.

有关此功能的更多信息,请参见此处的文档。

#1


1  

The only way you can receive updates server-side with PHP is by requesting access to web-hooks or Amazon SQS updates.

使用PHP接收服务器端更新的唯一方法是请求访问Web挂钩或Amazon SQS更新。

More information about this feature is available in the documentation here.

有关此功能的更多信息,请参见此处的文档。