开发者

Twitter: Unread direct messages using the Twitter API

开发者 https://www.devze.com 2022-12-08 06:26 出处:网络
Twitter: I must be blind, but how would I find out how many unread direct messages a certain user has?

Twitter:

I must be blind, but how would I find out how many unread direct messages a certain user has?

I'm using开发者_如何转开发 this documentation: https://dev.twitter.com/docs


Unread is a vaguely defined term. Unread is usually used in a specific client application. So, for instance, if you are using Twitterrific in two different machines with the same user account, both client instances will have different unread messages with respect to each other.

If you want to keep track of unread messages for your client, you must store the last message read ID. Each Twitter status is uniquely identified by a long number representing a global message ID, so it should not be difficult to accomplish.


Currently, Twitter doesn't offer this functionality. There is no way, currently, for Twitter to store which direct messages(or mentions or statuses for that matter) a user has read or hasn't read.

Though I believe they are looking into it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号