Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ruhiel/mastodonsharp

MastodonSharp is Mastodon Wrapper Library for C#
https://github.com/ruhiel/mastodonsharp

csharp mastodon rest-api

Last synced: 15 days ago
JSON representation

MastodonSharp is Mastodon Wrapper Library for C#

Awesome Lists containing this project

README

        

# MastodonSharp
MastodonSharp is Mastodon Wrapper Library for C#

# Usage
```
static void Main(string[] args)
{
var accessToken = Console.ReadLine();

var host = Console.ReadLine();

var client = new MastodonSharpClient(host, accessToken);

var streaming = client.GetPublicTimelineStreaming();

streaming.OnUpdate += Streaming_OnUpdate;

streaming.Start().Wait();
}

private static void Streaming_OnUpdate(object sender, MastodonSharp.Streaming.StreamingUpdateEventArgs e)
{
Console.WriteLine(e.Status.Content);
}
```

## License
MIT