获取Twitter帐户的推文总数 [英] Get total tweets count of twitter account
本文介绍了获取Twitter帐户的推文总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我需要在我的C#MVC网站上显示特定推特账号的推文总数。
我只有共享链接按钮代码,显示您的Twitter链接共享但不是推特计数代码。
任何代码或链接将不胜感激。
谢谢
解决方案
在c#中使用twitter api的好库。通过探索这个api你会发现下面的代码
TwitterCredentials.SetCredentials( ACCESS_TOKEN, ACCESS_TOKEN_SECRET, CONSUMER_KEY, CONSUMER_SECRET跨度>);
var tweets = Timeline.GetHomeTimeline( 100 );< br $>
参考:
https://tweetinvi.codeplex.com/ [ ^ ]
Hello,
I need to display total tweet count of particular twitter account on my C# MVC website.
I only got share link button code which shows count of your twitter link shared but not tweet count code.
any code or link will be appreciated.
Thanks
解决方案
A good library for using twitter api in c#.By exploring this api you will find a code like below
TwitterCredentials.SetCredentials("ACCESS_TOKEN", "ACCESS_TOKEN_SECRET", "CONSUMER_KEY", "CONSUMER_SECRET"); var tweets = Timeline.GetHomeTimeline(100);
Reference:
https://tweetinvi.codeplex.com/[^]
这篇关于获取Twitter帐户的推文总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文