拥有推特但不回复的用户/朋友
我在 ASP.NET 项目中使用 twitterizer。我举了一个示例(代码),如何使用 twitterizer 来显示不回帖的特殊帐户的关注者列表(分页)。
查询是:给我所有我关注了 5 天但没有关注我的用户。结果应该显示在带有分页的 GridView 中。
谢谢!
I am using twitterizer in an ASP.NET-project. I nned an example (code) how I can use twitterizer to show a list of followers (paged) for a special account that don't follow back.
The query is: Give me all users that I follow for e.g. 5 days but that didn't follow me back. The result should be displayed in a GridView with paging.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如我在电子邮件中所述,无法按日期过滤朋友或关注者。
最好的办法是使用
TwitterFriendship.FriendsIds()
和TwitterFriendship.FollowersIds()
,然后选择两者之间的差异。这将为您提供您不关注的关注者列表。 (朋友是您关注的用户。)为了识别新朋友/关注者,您需要保留 ID 列表,然后在以后查阅该列表以查看随时间的变化。As I stated in the email, there is no way to filter friends or followers by date.
Your best bet to do this is to use
TwitterFriendship.FriendsIds()
andTwitterFriendship.FollowersIds()
, then select the difference between the two. That will give you the list of followers that you don't follow. (Friends are users you follow.) In order to identify new friends/followers, you'll need to keep a list of the Ids, then consult that list at a later date to see the changes over time.您可以创建您关注的用户和关注您的用户的数据库(或列表等)。根据需要经常更新此内容,并为每个新添加内容添加时间戳。然后您可以查询该数据库来创建您想要的列表。
You could create a database (or list, etc) of users you followed and users who follow you. Update this as often you you need and add a time stamp for each new addition. Then you could query this database to create the list you want.