是否有可能获得当前的Twitter追随者总数?多久一次?

是否有可能获得当前的Twitter追随者总数?多久一次?,twitter,Twitter,事情是这样的。我想设置一个计数器,显示用户的Twitter关注者总数。当追随者的数量达到100万时,我很想做点什么。如果有这样的api,我多久可以调用一次api 谢谢。是的,您可以通过电话获取此信息。您会发现它是一个名为followers\u count的属性: "followers_count": 160752, 你好 对不起,我对PHP不太了解,对JQuery也不太了解,不过,下面是我在C#中所做的工作。。。希望有帮助;) 令人惊叹的。那么如何检索followers\u count属性?你

事情是这样的。我想设置一个计数器,显示用户的Twitter关注者总数。当追随者的数量达到100万时,我很想做点什么。如果有这样的api,我多久可以调用一次api

谢谢。

是的,您可以通过电话获取此信息。您会发现它是一个名为
followers\u count
的属性:

"followers_count": 160752,
你好 对不起,我对PHP不太了解,对JQuery也不太了解,不过,下面是我在C#中所做的工作。。。希望有帮助;)


令人惊叹的。那么如何检索followers\u count属性?你有一个简单的例子。谢谢。使用jquery或php或任何您喜欢的工具。谢谢,这非常有帮助。我还可以使用其他属性从xmldoc中提取。
// Launch the request to obtain the number of followers of the user
WebRequest request = HttpWebRequest.Create("http://twitter.com/users/show.xml?screen_name=[username]");

using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
StreamReader streamReader = new StreamReader(response.GetResponseStream());

// Load response in an XML Document
XmlDocument doc = new XmlDocument();
doc.LoadXml(streamReader.ReadToEnd());

// Parse the node we're interested in...
XmlNode node = doc.DocumentElement.SelectSingleNode("followers_count");

// ... and affect the number of followers
labelScore.Text = node.InnerText;
}