Image searching library in GelBooru, DanBooru, E-Shuushuu, and many others.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vs/ImageAPIs/v14
Demo
ImageAPIs
ImageAPIs.sln
LICENSE
README.md

README.md

ImageApis

  • Image searching library in GelBooru, DanBooru, E-Shuushuu, and many others.
  • For .NET Framework 3.5
  • CopyRight (C) 2014, RyuaNerin

OpenSource Library

Example

Find Image
SearchImage sImage = new ImageAPIs.Search.Gelbooru();
SerachOption sOption = new SearchOption("tsutsukakushi_tsukiko");
IList<ImageInfo> lstImages = sImage.Search(sOption);
Find Image by Async
void FindImage()
{
    SearchImage sImage = new ImageAPIs.Search.Gelbooru();
    SerachOption sOption = new SearchOption("tsutsukakushi_tsukiko");
    sImage.SearchAsync(sOption, Callback, sImage);
}

void Callback(IAsyncResult asyncResult)
{
	SearchImage sImage = asyncResult.UserState as SearchImage;
	SearchResult result = sImage.EndAsync(asyncResult);
}
Add new BooruApi
public class Danbooru : SearchBooru
{
	public override int EngineID { get { return EngineIDs.eDanbooru; } }

	public Danbooru()
		: base("http://danbooru.donmai.us/posts.json", "tags", "page", "limit", true)
	{
	}
}