以前我是用閱讀Twitter的飼料
http://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=xyz&count=5
閱讀Twitter微博。 但是在twitter api 1.1到來之後,我得到了錯誤的身份驗證數據錯誤。 我錯過了要做的事情嗎?
謝謝
普里亞
以前我是用閱讀Twitter的飼料
http://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=xyz&count=5
閱讀Twitter微博。 但是在twitter api 1.1到來之後,我得到了錯誤的身份驗證數據錯誤。 我錯過了要做的事情嗎?
謝謝
普里亞
對於閱讀的飼料,你必須在dev.twitter.com網站使用令牌和關鍵首先驗證。
此外,您可以嘗試TweetSharp庫。 https://github.com/danielcrenna/tweetsharp。
更新19/10/2016:
GitHub的danielcrenna/TweetSharp沒有提供任何更多。
從https://github.com/shugonta/TweetSharp
該項目正式歸檔/死....
如果你需要商業 和/或一個基於Twitter的API包裝的積極支持,你可能要 定位您的組織對替代品如Twitterizer或 LINQ to Twitter。
然而NuGet包TweetSharp仍然是可用的(最後更新2013年6月22日)
這裏是你如何與LINQ to Twitter做到這一點。使用StatusType.User查詢,例如:
var statusTweets =
(from tweet in twitterCtx.Status
where tweet.Type == StatusType.User &&
tweet.ScreenName == "xyz" &&
tweet.IncludeEntities == true &&
tweet.IncludeRetweets == true &&
tweet.Count == 5
select tweet)
.ToList();
var jsonData = twitterCtx.RawResult;
的TwitterContext實例的RawResult屬性包含JSON數據,Twitter的回報。因此,您可以選擇使用反序列化的推文或Twitter返回的原始數據。
**您使用的是何種語言** – Jimbo
我正在使用.NET。 C#.NET – Priya