veldtech / dotnet-imghoard

Imghoard C# API Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mikibot/imghoard API implementation in C#

.Net Imghoard

Build status

Environment Platform PlatformN
env_release

Getting started

Here's how to get started with .Net Imghoard

//Use Default Settings
ImghoardClient client = new ImghoardClient();
//Pass in config to constructor
ImghoardClient client = new ImghoardClient(new Config() {
  Endpoint = "https://imghoard.example.com"
});

//Get All Images Without Tags
var images = await client.GetImagesAsync();
//Get All Images Of Specfic Tag
var images = await client.GetImagesAsync("animal");
//Get All Images Of Specfic Tag on a specific page (0-index based)
var images = await client.GetImagesAsync(1, "animal");
//Get All Images Of Specific Tag Excluding Tag
var images = await client.GetImagesAsync("animal", "-cat");
//Get A specific image by it's Id
var image = await client.GetImageAsync(1169529585188999168);

//Posts A new Image
var imageurl = await client.PostImage(imageByteSpan, "supercool", "image", "with", "amazing", "tags");

About

Imghoard C# API Implementation


Languages

Language:C# 100.0%