我想獲取我的用戶帳戶的時間線,以便我可以在我們的網站上發佈推文。但是,TwitterStatusCollectionResponse ResponseObject始終沒有任何結果。 Content屬性具有看起來有效的json響應。結果屬性是「未知」。這裏是我的代碼:Twitterizer - TwitterStatusCollectionResponse ResponseObject nothing
Dim tokens As New OAuthTokens()
tokens.AccessToken = "XX"
tokens.AccessTokenSecret = "XX"
tokens.ConsumerKey = "XX"
tokens.ConsumerSecret = "XX"
Dim options As New SearchOptions()
options.PageNumber = 2
options.NumberPerPage = 2
Dim timelineOptions As New TimelineOptions
timelineOptions.IncludeRetweets = False
timelineOptions.Count = 5
Dim statusCollectionResponse As TwitterResponse(Of TwitterStatusCollection) = TwitterTimeline.HomeTimeline(tokens, timelineOptions)
'this next line errors.....
For Each status In statusCollectionResponse.ResponseObject
next
我試着4.0.5.0的舊版本,它沒有工作。我需要哪些版本? – HunterX3 2012-07-11 11:12:07
我拉下了Newtonsoft.Json 3.5.0.0和Twitterizer2 2.3.0,它工作正常。謝謝你回答。是的,nuget包是我如何獲得原始組件。 – HunterX3 2012-07-11 11:23:41