Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 750 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 750 Bytes

banner

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.

Examples

Get image URL

Get a random image from waifu endpoint in sfw category

WaifuClient client = new WaifuClient();  
Console.WriteLine(client.GetSfwImage(Endpoints.Sfw.Waifu));

Download image from API

WaifuClient client = new WaifuClient();
WaifuImage image = client.DownloadSfwImage(Endpoints.Sfw.Waifu);  
File.WriteAllBytes(image.Filename, image.Buffer);