-
-
Notifications
You must be signed in to change notification settings - Fork 3
Example
Ricky Setiawan edited this page Nov 26, 2020
·
2 revisions
var client = new DanbooruDonmai();
var artists = await client.ArtistListAsync("kantoku");
foreach (var artist in artists)
{
Console.WriteLine($"Name: {artist.Name}");
}
var client = new DanbooruDonmai();
var pools = await client.PoolList("touhou");
foreach (var pool in pools)
{
Console.WriteLine($"Name: {pool.Name}");
Console.WriteLine($"Post count: {pool.PostCount}");
}
var client = new DanbooruDonmai();
var pools = await client.PoolList("touhou");
foreach (var pool in pools)
{
Console.WriteLine($"Name: {pool.Name}");
Console.WriteLine($"Post count: {pool.PostCount}");
var posts = await client.PoolPostList(pool.ID);
foreach (var post in posts)
{
Console.WriteLine($"Post id: {post.ID}");
}
}
var client = new DanbooruDonmai();
var posts = await client.GetRandomPostAsync(10);
foreach (var post in posts)
{
Console.WriteLine($"Id: {post.ID}");
Console.WriteLine($"File url: {post.FileUrl}");
}
var client = new DanbooruDonmai();
var posts = await client.GetRandomPostAsync(10, new string[] { "azur_lane" });
foreach (var post in posts)
{
Console.WriteLine($"Id: {post.ID}");
Console.WriteLine($"File url: {post.FileUrl}");
}
Can use asterisk (*)
var client = new DanbooruDonmai();
var tags = await client.TagListAsync("loli");
foreach (var tag in tags)
{
Console.WriteLine($"Id: {tag.ID}");
Console.WriteLine($"Name: {tag.Name}");
}
var client = new DanbooruDonmai();
var wikis = await client.WikiListAsync("azur lane");
foreach (var wiki in wikis)
{
Console.WriteLine($"Id: {wiki.ID}");
Console.WriteLine($"Name: {wiki.Title}");
}