在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cake-contrib/Cake.Mastodon开源软件地址(OpenSource Url):https://github.com/cake-contrib/Cake.Mastodon开源编程语言(OpenSource Language):C# 94.5%开源软件介绍(OpenSource Introduction):Cake.MastodonA Cake AddIn that extends Cake with ability to post messages to Mastodon using Mastodon REST API. Including addinIncluding addin in cake script is easy.
UsageTo 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}"); CreditsBrought to you by Miha Markic (@MihaMarkic) and contributors. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论