TwitterConnect 1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global TwitterConnect --version 1.0.3
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local TwitterConnect --version 1.0.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=TwitterConnect&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package TwitterConnect --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Twitter Connect is a simple class library that authenticates the credentials and tweets the message to clients(customers) twitter handle. It authenticates twitter v2 API and supports .net 6 and 7.
Steps to implement:
MyTwitterConnect connect = new();
Credentials credentials = new()
{
ConsumerKey = "consumer_key",
ConsumerSecret = "consumer_secret",
AccessToken = "access_token",
AccessTokenSecret = "access_token_secret"
};
await connect.AuthenticateUserAndSendTweet(credentials, "Thank you");
The Library has a simple async function AuthenticateUserAndSendTweet(Credentials credentials, string tweetmessage) that accepts the credentials and message that you wish to tweet. It has a class named Credentials that has four properties ConsumerKey, ConsumerSecret, AccessToken, AccessTokenSecret. It is a simple light weight library that performs just what it explains. It authenticates the credentials and sends tweet. It returns HttpResponseMessage with the status code as response.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.