using System; using System.Threading.Tasks; namespace Uwaa.Pleroma.Test; static class Program { static void Main(string[] args) { MainInline().Wait(); } static async Task MainInline() { Pleroma client = new Pleroma("alpine1.local", "Bearer Y52OX25r7rp3Lyqa-oTibk5_4sLapEKBIsxa5vWMRtw"); Account account = await client.GetAccount(); Status[] statuses = await client.GetTimeline(); Console.WriteLine($"Account: {account} ({account.ID})"); Console.WriteLine("Public statuses:"); foreach (Status status in statuses) { Console.Write('\t'); Console.Write(status.CreatedAt.ToShortDateString()); Console.Write(' '); Console.Write(status.CreatedAt.ToLongTimeString()); Console.Write(' '); Console.WriteLine(status); } Console.ReadKey(); } }