Skip to content

Alex1911-Jiang/Yande.re.Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yande.re.Api

Yande.re / konachan.net / lolibooru.moe random picture api 随机色图Api

C# library for getting random images on yande.re / konachan.net / lolibooru.moe 一个请求 Yande.re / konachan.net / lolibooru.moe 获取色图的 C# 库

Usage 如何使用

        public static async void Main()
        {
            BaseClient client = await YandeClient.CreateNew(); //optional parameter filter by tag  可选 Tag 参数过滤
            //KonachanClient
            //LolibooruClient
            PictureItem item = await client.GetRandom(Rating.Safe);
            string imgUrl = item.BigImgUrl; //Source picture url 大图(原图)URL
            // Or
            foreach (var item in client.PictureList)
            {
                string imgUrl = await item.GetBigImgUrl(); //Source picture url 大图(原图)URL
            }
        }

Installation 如何安装

Install as NuGet package

使用NuGet包安装

Install-Package Yande.re.Api

About

Yande.re random picture api 随机色图Api

Resources

License

Stars

Watchers

Forks

Languages