我使用tweetinvi
获取Twitter的主要趋势,有些趋势的tweet_volume
值为null,我做错了吗?为什么它为null?
List<Tweet> topTrends = new List<Tweet>();
ITwitterCredentials creds = new TwitterCredentials("CONSUMER_KEY", "CONSUMER_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");
Auth.SetCredentials(creds);
var trends = Trends.GetTrendsAt(23424977);
for (int i = 0; i < trends.Trends.Count(); i++)
{
Tweet tweet = new Tweet
{
Name = trends.Trends[i].Name,
Volume = trends.Trends[i].TweetVolume,
Url = trends.Trends[i].URL,
Count = trends.Trends[i].PromotedContent
};
trendList.Add(tweet);
}