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.
精彩评论