Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 843 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 843 Bytes

VACEfron.NET 🌯

An asyncronous API wrapper for VAC Efron's API.

Installation

Example

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);
}