How to read Twitter feeds

2019-01-26 18:05发布

I've used this example to retrieve my twitter feeds however it has an error

The remote server returned an error: (400) Bad Request.

How can this be fixed?

2条回答
Summer. ? 凉城
2楼-- · 2019-01-26 18:41

Have you tried manually going to "http://twitter.com/statuses/user_timeline/" + User + ".rss" in your browser, and seeing if you get a 400 error there? I'm guessing a typo in your user name when you call Twitter.Parse(UserName);

查看更多
Ridiculous、
3楼-- · 2019-01-26 19:02

Consider using a library that abstracts all the parsing for you.

Try Twitterizer, a .NET library designed for quick and easy Twitter integration.

There is a large set of documentation on the Twitterizer API, and sample code. Perhaps get a feel for how others are using it by browsing the Twitterizer tag on StackOverflow.

查看更多
登录 后发表回答