-
Notifications
You must be signed in to change notification settings - Fork 7
Post functions
Christian Chaux edited this page Aug 7, 2018
·
9 revisions
The following information allow you to interact with the posts from the Booru websites
GetNbImage return the numbers of images available on the Booru given some tags. If no tags given, it'll return the total number of images available.
Task<int> GetNbImage(params string[] tags);
GetLimit return a nullable int corresponding to the limit of image available though the API (see previous page for more informations), null mean no limit.
int? GetLimit();
GetImage allow to search an image given an ID and some tags. For example an ID of 2 with a tag of "loli" will give the 3rd image found with this tag.
Task<BooruSharp.Search.SearchResult> GetImage(int id, params string[] tagsArg);
GetRandomImage search for a random image with the tags given. If no tags are gave, the image will be totally random.
Task<BooruSharp.Search.SearchResult> GetRandomImage(params string[] tags);
BooruSharp.Search.SearchResult is a structure containing the following datas:
- string fileUrl: URL to the image found
- string previewUrl: A preview of the image found
- BooruSharp.Search.Rating rating: The rating of the image (Safe, Questionable or Explicit)
- string[] tags: The list of all the tags on the image
- uint id: The ID of the image