Yet another .NET Twitter Library...
Simplest authorizing:
var session = OAuth.Authorize("consumer_key", "consumer_secret");
var tokens = OAuth.GetTokens(session, "PINCODE");Tweeting is very easy:
tokens.Statuses.Update(status => "hello");Go with the Streaming API and LINQ:
foreach(var status in tokens.Streaming.StartStream(StreamingType.Sample)
.OfType<StatusMessage>()
.Select(x => x.Status))
Console.WriteLine("{0}: {1}", status.User.ScreenName, status.Text);Get fantastic experiences with Rx:
using CoreTweet.Streaming.Reactive;
var stream = t.Streaming.StartObservableStream(StreamingType.Filter, new StreamingParameters(track => "tea")).Publish();
stream.OfType<StatusMessage>()
.Subscribe(x => Console.WriteLine("{0} says about tea: {1}", x.Status.User.ScreenName, x.Status.Text));
var disposable = stream.Connect();
await Task.Delay(30 * 1000);
disposable.Dispose();Oh yes why don't you throw away any StatusUpdateOptions and it kinds???
CoreTweet.dll ... the main library
CoreTweet.Streaming.Reactive.dll ... the extension for Rx
This software is licensed under the MIT License.
Now available in NuGet!
Or please download a binary from Releases.
To see the document of CoreTweet, visit our website now!