CoreTweet 0.8.1.394

A .NET Twitter Library supporting API 1.1
Simple, Powerful, and Well-designed for LINQ
See also: https://github.com/CoreTweet/CoreTweet

Install-Package CoreTweet -Version 0.8.1.394
dotnet add package CoreTweet --version 0.8.1.394
paket add CoreTweet --version 0.8.1.394
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CoreTweet

Build Status on Travis CI
Build Status on AppVeyor
Gitter chat

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");

We provide the most modern way to use Twitter's API asynchronously:

var tokenSource = new CancellationTokenSource();
var task = tokens.Statuses.UpdateWithMediaAsync(
    new { status = "Yummy!", media = new FileInfo(@"C:\test.jpg") },
    tokenSource.Token
);
// oh! that was a photo of my dog!!
tokenSource.Cancel();

Go with the Streaming API and LINQ:

var sampleStream = tokens.Streaming.Sample()
    .OfType<StatusMessage>()
    .Select(x => x.Status);
foreach(var status in sampleStream)
    Console.WriteLine("{0}: {1}", status.User.ScreenName, status.Text);

Get fantastic experiences with Rx:

var disposable = tokens.Streaming.FilterAsObservable(track => "tea")
    .OfType<StatusMessage>()
    .Subscribe(x => Console.WriteLine("{0} says about tea: {1}", x.Status.User.ScreenName, x.Status.Text));

await Task.Delay(30 * 1000);
disposable.Dispose();

Various types of method overloads:

tokens.Statuses.Update(status => "hello");

tokens.Statuses.Update(new { status = "hello" });

tokens.Statuses.Update(new YourClass("hello"));

tokens.Statuses.Update(status: "hello");

tokens.Statuses.Update(new Dictionary<string, object>()
{
    {"status", "hello"}
});

Oh yes why don't you throw away any StatusUpdateOptions and it kinds???

Latest Build Results

Platforms

We support both of Windows .NET and Mono, and CoreTweet works on following platforms:

  • .NET Framework 3.5 (without Rx support)
  • .NET Framework 4.0
  • .NET Framework 4.5
  • .NET Standard 1.1
  • Windows 8.1
  • Windows Phone 8.1
  • Xamarin Android / iOS

Documentation

Documents of API is here.

Visit Wiki to get more information such as examples.

Install

Now available on NuGet!

PM> Install-Package CoreTweet

Or please download a binary from Releases.

Build

You can't build PCL/WindowsRT binaries on Mono (on Linux) because they require non-free libraries.

On Windows

Requires
  • .NET Framework 4.6
  • Windows PowerShell
  • Visual Studio 2017
  • .NET Core 1.0 SDK
  • Doxygen (optional: used to generate documentation)
Step
  • Run PowerShell as an admin and execute
Set-ExecutionPolicy AllSigned
  • Run build.ps1

On Linux and other Unix-like

Requires
  • Mono 4.x or above
  • make
  • XBuild
  • Doxygen (optional: used to generate documentation)
Step
  • Run make

Contributing

Please report to Issues if you find any problems.

We seriously need your help for writing documents.

Please go to Wiki and write API documents, articles or/and some tips!

Pull requests are welcome.

License

This software is licensed under the MIT License.

CoreTweet

Build Status on Travis CI
Build Status on AppVeyor
Gitter chat

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");

We provide the most modern way to use Twitter's API asynchronously:

var tokenSource = new CancellationTokenSource();
var task = tokens.Statuses.UpdateWithMediaAsync(
    new { status = "Yummy!", media = new FileInfo(@"C:\test.jpg") },
    tokenSource.Token
);
// oh! that was a photo of my dog!!
tokenSource.Cancel();

Go with the Streaming API and LINQ:

var sampleStream = tokens.Streaming.Sample()
    .OfType<StatusMessage>()
    .Select(x => x.Status);
foreach(var status in sampleStream)
    Console.WriteLine("{0}: {1}", status.User.ScreenName, status.Text);

Get fantastic experiences with Rx:

var disposable = tokens.Streaming.FilterAsObservable(track => "tea")
    .OfType<StatusMessage>()
    .Subscribe(x => Console.WriteLine("{0} says about tea: {1}", x.Status.User.ScreenName, x.Status.Text));

await Task.Delay(30 * 1000);
disposable.Dispose();

Various types of method overloads:

tokens.Statuses.Update(status => "hello");

tokens.Statuses.Update(new { status = "hello" });

tokens.Statuses.Update(new YourClass("hello"));

tokens.Statuses.Update(status: "hello");

tokens.Statuses.Update(new Dictionary<string, object>()
{
    {"status", "hello"}
});

Oh yes why don't you throw away any StatusUpdateOptions and it kinds???

Latest Build Results

Platforms

We support both of Windows .NET and Mono, and CoreTweet works on following platforms:

  • .NET Framework 3.5 (without Rx support)
  • .NET Framework 4.0
  • .NET Framework 4.5
  • .NET Standard 1.1
  • Windows 8.1
  • Windows Phone 8.1
  • Xamarin Android / iOS

Documentation

Documents of API is here.

Visit Wiki to get more information such as examples.

Install

Now available on NuGet!

PM> Install-Package CoreTweet

Or please download a binary from Releases.

Build

You can't build PCL/WindowsRT binaries on Mono (on Linux) because they require non-free libraries.

On Windows

Requires
  • .NET Framework 4.6
  • Windows PowerShell
  • Visual Studio 2017
  • .NET Core 1.0 SDK
  • Doxygen (optional: used to generate documentation)
Step
  • Run PowerShell as an admin and execute
Set-ExecutionPolicy AllSigned
  • Run build.ps1

On Linux and other Unix-like

Requires
  • Mono 4.x or above
  • make
  • XBuild
  • Doxygen (optional: used to generate documentation)
Step
  • Run make

Contributing

Please report to Issues if you find any problems.

We seriously need your help for writing documents.

Please go to Wiki and write API documents, articles or/and some tips!

Pull requests are welcome.

License

This software is licensed under the MIT License.

Version History

Version Downloads Last updated
0.8.1.394 (current version) 910 9/26/2017
0.8.0.384 2,052 5/5/2017
0.7.2.352 3,290 9/29/2016
0.7.1.345 1,126 8/10/2016
0.7.0.339 563 7/24/2016
0.6.4.304 543 6/23/2016
0.6.3.296 653 5/29/2016
0.6.2.277 1,301 3/3/2016
0.6.1.267 788 1/18/2016
0.6.0.251 1,249 10/25/2015
0.5.4-beta2 154 10/9/2015
0.5.4-beta 176 9/21/2015
0.5.3 816 8/21/2015
0.5.2.200 700 7/4/2015
0.5.1.191 163 7/3/2015
0.5.0.171 249 6/22/2015
0.4.3.110 522 5/4/2015
0.4.2.84 756 2/16/2015
0.4.1 351 1/28/2015
0.4.0 1,282 9/7/2014
0.3.4 493 6/18/2014
0.3.3 364 5/31/2014
0.3.2 334 5/17/2014
0.3.1 202 5/6/2014
0.3.0 216 4/27/2014
0.2.4 183 4/25/2014
0.2.3 252 4/5/2014
0.2.2 208 3/23/2014
0.2.1 184 3/23/2014
0.2.0 182 3/22/2014
0.1.8 200 3/11/2014
0.1.7-beta 155 2/22/2014
0.1.6-pre-alpha 164 2/1/2014
0.1.5-pre-alpha 144 1/19/2014