A C# lib for getting cute nekos, waifus and Foxes from nekos.life
Install the nuget package here https://www.nuget.org/packages/nekos-sharp
All nsfw content has been removed from this API and the nsfw endpoints will not work. This repo will be archived.
Create an instance of the client
public static NekosSharp.NekosClient NekoClient = new NekosClient("Bot Name Here");`
Version 3 of nekos.life is here you can use them with THIS HAS NOT BEEN UPDATED YET!
Request Req = await NekoClient.Misc_v3.Cat();
Request Req = await NekoClient.Action_v3.Slap();
Request Req = await NekoClient.Image_v3.Neko();
Request Req = await NekoClient.Nsfw_v3.Neko();
Then use any of the endpoints
Request Req = await NekoClient.Misc.Cat();
Request Req = await NekoClient.Action.Slap();
Request Req = await NekoClient.Image.Neko();
Request Req = await NekoClient.Nsfw.Neko();
Misc endpoints: 5
Action endpoints: 8
Image endpoints: 10
Nsfw endpoints: 34 mmmhhh
Req.ImageUrl | The url of the requested image
Req.Success | Returns true if the request was successful
Req.ErrorCode | Error code of failed request
Req.ErrorMessage | Error message of failed request