CoreTweet 2.0.0-beta.1

This is a prerelease version of CoreTweet.
dotnet add package CoreTweet --version 2.0.0-beta.1                
NuGet\Install-Package CoreTweet -Version 2.0.0-beta.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoreTweet" Version="2.0.0-beta.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoreTweet --version 2.0.0-beta.1                
#r "nuget: CoreTweet, 2.0.0-beta.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CoreTweet as a Cake Addin
#addin nuget:?package=CoreTweet&version=2.0.0-beta.1&prerelease

// Install CoreTweet as a Cake Tool
#tool nuget:?package=CoreTweet&version=2.0.0-beta.1&prerelease                

CoreTweet

Build Status on Travis CI Build Status on AppVeyor Gitter chat Standard v2

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.3
  • Universal Windows Platform
  • 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 3.1 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 documentation, articles and/or some tips!

Pull requests are welcome.

License

This software is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on CoreTweet:

Package Downloads
CoreTweet.Streaming.Reactive

[Obsolete] This package is no longer required to use streaming APIs with CoreTweet.

CoreTweetSupplement

An utility for client developers with CoreTweet

TwitterTraceListener

Provides a listener that tweets.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on CoreTweet:

Repository Stars
Squidex/squidex
Headless CMS and Content Managment Hub
Version Downloads Last updated
2.0.0-beta.1 8,742 9/20/2021
1.0.0.483 123,622 10/10/2018
0.9.0.415 10,172 4/27/2018
0.8.2.404 4,484 2/5/2018
0.8.1.394 9,381 9/26/2017
0.8.0.384 4,414 5/5/2017
0.7.2.352 6,588 9/29/2016
0.7.1.345 3,143 8/10/2016
0.7.0.339 2,375 7/24/2016
0.6.4.304 5,727 6/23/2016
0.6.3.296 2,685 5/29/2016
0.6.2.277 3,420 3/3/2016
0.6.1.267 2,758 1/18/2016
0.6.0.251 3,459 10/25/2015
0.5.4-beta2 1,805 10/9/2015
0.5.4-beta 1,833 9/21/2015
0.5.3 3,595 8/21/2015
0.5.2.200 2,561 7/4/2015
0.5.1.191 2,184 7/3/2015
0.5.0.171 2,333 6/22/2015
0.4.3.110 2,638 5/4/2015
0.4.2.84 2,899 2/16/2015
0.4.1 2,837 1/28/2015
0.4.0 3,481 9/7/2014
0.3.4 2,949 6/18/2014
0.3.3 2,486 5/31/2014
0.3.2 2,458 5/17/2014
0.3.1 2,325 5/6/2014
0.3.0 2,357 4/27/2014
0.2.4 2,357 4/25/2014
0.2.3 2,455 4/5/2014
0.2.2 2,354 3/23/2014
0.2.1 2,339 3/23/2014
0.2.0 2,376 3/22/2014
0.1.8 2,328 3/11/2014
0.1.7-beta 1,959 2/22/2014
0.1.6-pre-alpha 1,905 2/1/2014
0.1.5-pre-alpha 1,877 1/19/2014