我正在使用 获取 twitter 的热门趋势tweetinvi
,一些趋势的tweet_volume
值为 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);
}