Cake.Mastodon

Cake Addin that exends Cake with ability to post messages to Mastodon, using the Mastodon REST API.


Keywords
Cake, Script, Build, Mastodon, cake-addin
License
Apache-2.0
Install
Install-Package Cake.Mastodon -Version 1.1.0

Documentation

Cake.Mastodon

A Cake AddIn that extends Cake with ability to post messages to Mastodon using Mastodon REST API.

cakebuild.net NuGet Build status

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.