"A project made for nekos" - Swyrin
Nekos.Net
is an asynchronous library to interact with nekos.life API, currently
supporting both v2 and v3 API. If you love this repo, consider giving it a star ⭐
namespace Hello.There.Nekos;
public class Program
{
public async Task ExecuteMeAsync()
{
NekosV2Client client = new();
NekoOwoify owo = await client.OwOifyAsync("Hello world");
Console.WriteLine(owo.OwO);
}
}
⚠️ This API version is still in development phase by the owners so this code snippet might change in the future
namespace Hello.There.Nekos;
public class Program
{
public async Task ExecuteMeAsync()
{
NekosV3Client client = new();
NekosSingleResponse res = await client.WithSfwImgEndpoint(SfwImgEndpoint.Neko).GetAsync();
Console.WriteLine(res.Data.Response.Url);
}
}
With logging (+Serilog)
namespace Hello.There.Nekos;
public class Program
{
private NekosV2Client _clientWithLogging;
public void CreateAClientWithLogger()
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Console()
.CreateLogger();
_clientWithLogging = new(new SerilogLoggerProvider(Log.Logger).CreateLogger("Nekos"));
}
}
- Discord: https://discord.com/invite/BARzYz8
- Patreon: https://patreon.com/nekos_life
- GitHub: https://github.com/Nekos-life