Cake.Mastodon
A Cake AddIn that extends Cake with ability to post messages to Mastodon using Mastodon REST API.
Including addin
Including addin in cake script is easy.
#addin "Cake.Mastodon"
Usage
To use the addin just add it to Cake call the aliases and configure any settings you want.
#addin "Cake.Mastodon"
...
string accessToken = EnvironmentVariable("MASTODON_ACCESS_TOKEN");
// How to update the status (send a toot)
var result = MastodonSendToot("https://botsin.space", accessToken, "Merely testing three", "I1");
Information($"Success: {result.IsSuccess} Code: {result.StatusCode} Phrase: {result.ReasonPhrase} Body: {result.Body}");
Credits
Brought to you by Miha Markic (@MihaMarkic) and contributors.