Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

Packages

Contributors

Languages