Using tweetsharp to pull my public timeline not returning any retweets
I am currently using TweetSharp to pull in my public timeline to my web application.
Everything is working except I don't seem to be getting any retweets that I post.
Is there a way that I can get my retweets also?
Below is a snip of the code that I am currently using to pull in my tweets.
Thanks for any help or advice!
var twitter = FluentTwitter.CreateRequest()
.Statuses()
.OnUserTimeline()
开发者_Python百科 .Take(5)
.For(UserId);
var response = twitter.Request();
I think I just answered your post on the TweetSharp discussion board.
I'll copy it here in case you don't check there ...
I can tell you that it is possible through the twitter api. The user timeline endpoint supports an 'include_rts' parameter that enables this exact functionality.
For example: http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=twitterapi&include_rts=true (if prompted for login, just hit cancel)
I don't know if TweetSharp has implemented that parameter or if it will get added. I don't think there are any developers working on TweetSharp anymore. I'm actually a developer from a different library, Twitterizer, filling in the support gap.
I forked TweetSharp (RetweetsForListTweetsOnSpecifiedUser) and put in the code to add the include_rts as a parameter on those methods. Pass a true or false, 1 or 0 in as a value.
精彩评论