트위터 마이저를 사용한 검색은 인증이 필요 없거나 (심지어 수락 된 경우도 있기 때문에) 매우 간단합니다.
다음은 링크 된 검색을 수행하고 결과를 반복하는 코드 샘플입니다. 예외 정보 : System.Exception :
TwitterResponse<TwitterSearchResultCollection> searchResponse = TwitterSearch.Search("manchester airport delay");
// You should check that the request was successfull. If not, log/display/handle it.
if (searchResponse.Result != RequestResult.Success)
{
// An example method call
LogAndDisplayError(searchResponse.ErrorMessage);
}
else
{
// The ResponseObject property will be a TwitterSearchResultCollection
// You can bind many controls' datasource directly to the ResponseObject
foreach (TwitterSearchResult result in searchResponse.ResponseObject)
{
// Which means each result will be a TwitterSearchResult
DisplayResult(result);
}
}
에서 LINQ 트위터에 프로젝트를 살펴 할 수 없습니다 System.Double에서 Twitterizer.TwitterSearchResultCollection으로 변환하거나 변환 할 수 있습니다. – RRG
나는 그 버그가 시정되었다고 생각한다. github에서 최신 코드를 가져 와서 다시 시도 할 수 있습니까? 계속 진행되면 새로운 버그로 신고하십시오. –
안녕 리키, 버그가 수정 된 것 같습니다. – PerryW