Twitter Streaming API .NET library [closed]

有些话、适合烂在心里 提交于 2019-12-05 16:43:13

问题


I am currently trying to write some code to consumer the user stream from the Twitter streaming API:

http://dev.twitter.com/pages/user_streams

I am struggling to connect to it using basic auth and assume (the docs don't say) that OAuth is required.

However I cannot find a Twitter .NET library that supports streaming and OAuth (actually, haven't found any with decent samples/docs on consuming the streaming API).

Does anyone know of any? Currently I have written my own code to consume the sample stream using C# and dynamic but really don't want to have to implement OAuth (people say its complex).

Edit:

Although, I have been able to get an access token and access token secret via the TweetSharp library fine, I have no clue on how to generate the required headers/implement oauth, which could be another option I guess rather than a full library.

Short version:

  • Looking for a library that supports streaming API and OAuth
  • Advise on implementing OAuth manually

回答1:


Check Shannon Whitley post: Twitter oAuth with .NET




回答2:


As I explained in this post Consuming twitter stream API, Tweetinvi API provides easy to configure Streaming API access.

You can download it here : http://tweetinvi.codeplex.com/

A Stream class exist and will enable you to easily implement a delegate to read the content coming from Twitter.

The class has been tested on real-life projects and is able to retrieve millions of tweets per day.

I am one of the developer working on the project.




回答3:


I've used the TweetSharp library in the past, which supports OAuth.



来源:https://stackoverflow.com/questions/5154072/twitter-streaming-api-net-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!