Message to all .NET Folks, I think it's a good time to say that I made an open-source .NET library to connect to the Mastodon API
https://github.com/glacasa/Mastonet/

#dotnet

GitHub - glacasa/Mastonet: C# Library for Mastodon

C# Library for Mastodon. Contribute to glacasa/Mastonet development by creating an account on GitHub.

GitHub
@glacasa very cool! I was trying to find if mastodon had a way to translate your French toots. Haven't found it yet (at least on android). Je nes parle pas bien les Francais

@TimPurdum I toot mostly in french, sorryโ€ฆ

On Android, I use the "Fedilab" app (available on Play Store for a few bucks, and is free on F-Droid)
There's an option to translate messages

@glacasa

SO GLAD I saw this before logging off for the night - thank you Guillaume!

I'll have a play this week.

@glacasa this one was last updated in 2018 - does it still work?
@tomasekeli
The last update on Nuget is from 2021
It should still work, yes
@glacasa that's my first bookmark on Mastodon!

@glacasa Are there any glaring api endpoints missing from Mastonet?

I am currently looking at Mastodot as well and since there is not a Swagger for the Mastodon API I can't easily compare them.

Thanks!

@adamhill The Mastodon API are documented here (on the left menu)
https://docs.joinmastodon.org/methods/apps/

Let me know if some APIs are missing

@glacasa Perhaps I could do a quick Avalonia client for mastodon with this :D

@glacasa lol, I forked this the other day because I thought it was dead! https://github.com/drasticactions/drastic.mastodon

All I've done (beyond running dotnet format and setting up stylecop) is remove the JSON.NET dependency and replace it with System.Text.Json. I can PR that back to you if you want.

@drasticactions Not dead, I just don't work on it because it is barely used.
I still look if there are bugs or new APIs to add from time to time

I will happily merge your PR ! ๐Ÿ˜‰

@glacasa should this be the messaging standard not mastodon?
@glacasa e.g. ActivityPub? Maybe borrow from https://github.com/NicolasConstant/BirdsiteLive

@shawnwildermuth
ActivityPub is the standard for the federation, server to server communication

This lib is a client library to connect to a specific Mastodon instance, different usage

@glacasa Cool. My first comment would be to add a .editorconfig file to the root folder
@glacasa My next question would be why use " <LangVersion>8.0" instead of <LangVersion>latest" in the .csproj? Is it that 8.0 is the latest version supported by all the TargetFrameworks, ie "latest" varies across compilation targets?

@anthony_steele It's because I needed the 8.0 version when I started worked on it ; I didn't think further ๐Ÿ˜

The project doesn't really evolve because the Mastodon API support is full(~ish), and it was barely used until a few days ago.
I update .NET version and nuget packages from time to time.
I will change the LangVersion on the next update ๐Ÿ˜‰

If there are lots of devs using it in the next days/mont, I will support it completely .

@glacasa Now all we need is an @avaloniaui UI on top ๐Ÿค”
@maartenballiauw
Please do !
I don't dev with avalonia, but I would love to see a nice app ๐Ÿ˜‰
@avaloniaui
@glacasa @avaloniaui More trying to nerd snipe Wiesล‚aw over at Avalonia ๐Ÿ˜