Tag: linq to twitter

从我的时间轴返回所有推文

我希望退回我在时间轴上发布的所有推文。 我正在使用Linq To Twitter库 – var statusTweets = from tweet in twitterCtx.Status where tweet.Type == StatusType.User && tweet.UserID == MyUserID && tweet.Count == 200 select tweet; statusTweets.ToList().ForEach( tweet => Console.WriteLine( “Name: {0}, Tweet: {1}\n”, tweet.User.Name, tweet.Text)); 这工作正常并带回前200.然而前200似乎是我可以检索的最大值,因为有一种方法可以恢复说1000? 似乎没有next cursor movement选项,就像在该库的其他部分中移动到下一页等。

linqtotwitter – 获取保存的凭据

我使用linqtotwitter库,在我的win表单应用程序中我可以对twitter进行api调用,但是当我关闭我的应用程序并重新打开时,我需要再次重复输入密码/// 在twitter programm tweetdesc中它只需要输入一次针脚吗? 我如何在应用程序本身中做得好? 我读: 授权后,保存与该用户关联的凭据。 下次用户需要使用您的应用执行操作时,请获取已保存的凭据并将所有4个凭据加载到授权程序中。 当授权者拥有全部4个凭据时,它不再需要执行授权过程,您可以在不授权的情况下执行查询 但是这怎么办?

如何使用LinqToTwitter获取Hashtag上的所有推文

我试图让所有推文(计数总推文数)属于主题标签。 我的function在这里,如何使用maxID和sinceID获取所有推文。 什么是“计数”而不是“计数”? 我不知道。 if (maxid != null) { var searchResponse = await (from search in ctx.Search where search.Type == SearchType.Search && search.Query == “#karne” && search.Count == Convert.ToInt32(count) select search) .SingleOrDefaultAsync(); maxid = Convert.ToString(searchResponse.SearchMetaData.MaxID); foreach (var tweet in searchResponse.Statuses) { try { ResultSearch.Add(new KeyValuePair(tweet.ID.ToString(), tweet.Text)); tweetcount++; } catch {} } while (maxid != null […]

Twitter API仅应用程序身份validation(使用linq2twitter)

我需要实现Twitter API应用程序专用身份validation,我已经搜索了linq2twitter oauth示例和stackoverflow问题,但我没有找到任何有用的信息。 是否可以使用linq2twitter实现这种授权以及如何实现?