2016-03-16 69 views
1

我正在使用PHP。我希望不使用JavaScript實時通知庫的情況下從PHP讀取未讀/不可見的計數。我將如何做到這一點?如何從API獲取看不見/未讀的通知計數?

我的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

可以接收更新與PHP服務器端的唯一方法是請求訪問網絡的鉤或Amazon SQS更新。

有關該功能的更多信息,請參見文檔here