Official minimal .NET wrapper for waifu.pics.
Refer to the docs for available endpoints currently in the API.
Install the NuGet package into your project.
Get a random image from waifu endpoint in sfw
category
WaifuClient client = new WaifuClient();
Console.WriteLine(client.GetSfwImage(Endpoints.Sfw.Waifu));
WaifuClient client = new WaifuClient();
WaifuImage image = client.DownloadSfwImage(Endpoints.Sfw.Waifu);
File.WriteAllBytes(image.Filename, image.Buffer);