Nekos sharp is a wrapper that is used to get images from the service Nekos.life to get starting you need to implement the nameSpace
using Nekos.Sharp
to get Images you need to use the static Method GetImageAsync from NekoClient then you need to choose the image title you can choose from sfw and nsfw image
Examples
using System;
using System.Threading.Tasks;
using Nekos.Sharp;
using Nekos.Sharp.Responses;
namespace Example
{
class Program
{
static async Task Main(string[] args)
{
/*
For Nsfw Image Change SFWTypes To NSFWTypes
NekoImg Data = await NekoClient.GetImageAsync(SFWTypes.Lewd);
*/
NekoImg Data = await NekoClient.GetImageAsync(SFWTypes.Hug);
Console.Write(Data.ImageURl);
Console.ReadKey();
}
}
}
Why Object Example
using System;
using System.Threading.Tasks;
using Nekos.Sharp;
using Nekos.Sharp.Responses;
namespace Example
{
class Program
{
static async Task Main(string[] args)
{
NekoWhy Data = await NekoClient.GetWhyAsync();
Console.Write(Data.Why);
Console.ReadKey();
}
}
}
Fact Object Example
using System;
using System.Threading.Tasks;
using Nekos.Sharp;
using Nekos.Sharp.Responses;
namespace Example
{
class Program
{
static async Task Main(string[] args)
{
NekoFact Data = await NekoClient.GetFactAsync();
Console.Write(Data.Fact);
Console.ReadKey();
}
}
}