ocTweetThis 0.0.1

.NET 6.0
Install-Package ocTweetThis -Version 0.0.1
dotnet add package ocTweetThis --version 0.0.1
<PackageReference Include="ocTweetThis" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ocTweetThis --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ocTweetThis, 0.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ocTweetThis as a Cake Addin
#addin nuget:?package=ocTweetThis&version=0.0.1

// Install ocTweetThis as a Cake Tool
#tool nuget:?package=ocTweetThis&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

<img src="tweet.png" alt="Tweet Icon" width="50"/> Tweet This

What is this?

Tweet This is an Umbraco Content App. It sits in the backoffice of Umbraco and allows a content editor or any backoffice user of Umbraco to create a tweet for the node and then allows you to tweet to a linked account. The tweet will then be published on Twitter with a link back to the webpage.

There is also a history of all tweets created and a link to that tweet from the backoffice.

//TODO Add image of backoffice

Setup

You need to get a Twitter API key from - https://developer.twitter.com/en/portal/dashboard

Once you have the details for your API, you need to update the appsettings.json file in your Umbraco project

"ocTweetThis": {
    "ConsumerKey": "twitter_consumer_key",
    "ConsumerSecret": "twitter_consumer_secret",
    "AccessToken": "twitter_access_token",
    "AccessSecret": "twitter_access_secret",
  }

Test mode

If you want to test Tweet This without an API Key from Twitter you can use Test Mode. Copy and Paste the snippet below in to the `appsettings.json

    "ConsumerKey": "twitter_consumer_key",
    "ConsumerSecret": "twitter_consumer_secret",
    "AccessToken": "twitter_access_token",
    "AccessSecret": "twitter_access_secret",
    "EnableLiveTweeting": "False",
    "EnableTestMode":  "True"

Just add the two optional values to the appsettings.json file - "EnableLiveTweeting": "False" and "EnableTestMode": "True". This will allow you to see the functionality of the package, minus it actually tweeting out to your account.

<a href="https://www.flaticon.com/free-icons/tweet" title="tweet icons">Tweet icons created by Freepik - Flaticon</a>

Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.1 98 3/1/2022