【发布时间】:2016-08-11 07:50:09
【问题描述】:
我正在获取针对主题标签的 twitter 提要,但它只获取一个提要。
仅获取 7 天的提要是真的吗?
下面是我的代码:
public string GetSearch(string search, int count)
{
string resourceUrl = string.Format("https://api.twitter.com/1.1/search/tweets.json");
var requestParameters = new SortedDictionary<string, string>();
requestParameters.Add("count", count.ToString());
requestParameters.Add("q", search);
var response = GetResponse(resourceUrl, Method.GET, requestParameters);
return response;
}
【问题讨论】:
-
抱歉,我没听懂:您为什么希望一次搜索会提供多个提要?
-
是的,它看起来仅限于 7 天:来自 The Search API docs:“Twitter 搜索 API 会根据过去 7 天内发布的近期推文样本进行搜索。”