1

I want to get all followers ids who don't make their tweets private. What modification needs in the query

 var friends = await twitterCtx.Friendship
                    .Where(f => f.Type == FriendshipType.FollowerIDs
                             && f.UserID == twitterUserId.ToString()
                             && f.Count == maxFollowersToRetrieve
                             && f.Cursor == nextCursor)
                     .Select(f => f).SingleOrDefaultAsync();
4

1 回答 1

1

FollowerIDs 查询只会给你用户 ID。您可以改用 FollowerList。Friendship 响应有一个名为 Users 的属性,它是 User 的集合。每个 User 实体都有一个名为 Protected 的属性,如果用户将其推文设为私有,则该属性设置为 true。

于 2014-03-21T01:40:37.280 回答