1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | How to poll for unread plurks properly -------------------------------- It seems like it's common to poll after unread plurks, so here is a recipe on how to do it efficiently. Please bear in mind not to do this too frequently (1 minute intervals are acceptable for most usages). 1) Be sure to login only once using ( notice the no_data=1 ): /API/Users/login?api_key=...&username=...&password=...&no_data=1 2) Do a query to /API/Polling/getUnreadCount?api_key=... This will return a JSON object: {"all": 50, "my": 3, "responded": 5, "private": 0} |
Direct link: https://paste.plurk.com/show/112931