An asyncronous API wrapper for VAC Efron's API.
Calling the "ejected" endpoint and writing the image to a file. Result
using VACEfron.NET;
using VACEfron.NET.Enums;
using VACEfron.NET.Exceptions;
try
{
var client = new VACEfronClient();
var stream = await client.EjectedAsync(name: "VAC Efron", isImpostor: true, crewmateColor: CrewmateColor.Pink);
await using var fs = File.Create("image.png");
stream.CopyTo(fs);
}
catch (VACEfronException e)
{
Console.WriteLine(e.StatusCode);
Console.WriteLine(e.Message);
}