我想使用linq到twitter v.4進行搜索。我迄今爲止設法完成的查詢獲取用戶推文。如何在c#中使用linq到twitter v.4進行twitter搜索#
有沒有一種方法可以像在twitter搜索框中一樣搜索?
例如當我在瀏覽器的搜索框中輸入音樂時,會顯示所有相關的推文。
我在網上發現了這段代碼,但得到錯誤消息'StatusType'沒有包含搜索定義。
var statusTweets = from tweet in twitterContext.Search
where tweet.Type == StatusType.Search &&
tweet.Query =="twitter"&&
tweet.Count == 2 &&
tweet.IncludeEntities == true
select tweet;
對於「StatusType.Search」我得到'StatusType'不包含搜索定義。 我會看看你建議的來源。 – Decoder94
而不是'StatusType'我使用'SearchType'。 – Decoder94