English 中文(简体)
找到所有使用 Linq 到 Twitter 的用户的追随者吗?
原标题:Find all followers for a user using Linq to Twitter?

如何找到所有推特用户使用Linq2Twitter的追随者?

在文档中,我所能找到的只是提到.后继财产,而不是.后继财产。

var result = from search in context.List
             where search.Following //etc

如果我提供推特用户名, 我如何能找到推特用户的追随者?

twitter.com/foobar //  foobar  is the username.
问题回答

LINQ to Twitter 允许您为朋友和追随者查询社交图。 这里的一个例子是如何获得追随者 :

        var followers =
            (from follower in twitterCtx.SocialGraph
             where follower.Type == SocialGraphType.Followers &&
                   follower.ID == "15411837"
             select follower)
            .SingleOrDefault();

        followers.IDs.ForEach(id => Console.WriteLine("Follower ID: " + id));

这将返回 ID 。 这里的完整文件 : < a href="http://linqto twitter.codplex.com/wikipage? title=Listing% 20 Conferences& rerefertingTitle=Listing% 20 Social% 20Graphs" rel=“nofollow” >http://linqto twitter.codeplex.com/wikipage? title=Listing% 20 Conferenceers& refertingTitle=Listing% 20Social%20Graphs 。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签