Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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#
- Host: GitHub
- URL: https://github.com/ruhiel/mastodonsharp
- Owner: ruhiel
- License: mit
- Created: 2017-05-14T14:36:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T12:05:33.000Z (over 7 years ago)
- Last Synced: 2024-04-13T12:57:43.523Z (8 months ago)
- Topics: csharp, mastodon, rest-api
- Language: C#
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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