Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 1.6 KB

ArtilitiesClient.md

File metadata and controls

63 lines (49 loc) · 1.6 KB

Artilities.ArtilitiesClient()

This is a seperated documentation file written for the Artilities.ArtilitiesClient()

  • This file contains every Artilities.ArtilitiesClient() function / method nicely wrapped up
  • In case some values turn out like "??? ?? ????", set your output encoding to UTF-8 (Console-App Example: Console.OutputEncoding = System.Text.Encoding.UTF8;)
ArtilitiesClient

The Artilities.ArtilitiesClient() Object is a crucial part to interact with the Artilities API, as there needs to be an instance of it to work.

Values:

  • ignoreNonOK : bool (default: false) : If turned to true, the library will not throw Exceptions on Non-HttpOK responses

Example:

Artilities.ArtilitiesClient artClient = new Artilities.ArtilitiesClient(); // We will use this ArtilitiesClient for the rest of the examples

Returns:

  • Nothing
GetIdea()

This function allows you to retrieve an Artilities Art-Idea

Example:

var Idea = artClient.GetIdea();
Console.WriteLine($"My Art Idea: {Idea.english}");

Returns:

  • Artilities.Objects.DefaultResponse
GetChallenge()

This function allows you to retrieve an Artiltiies Art-Challenge

Example:

var Challenge = artClient.GetChallenge();
Console.WriteLine($"My Art Challenge: {Challenge.english}")

Returns:

  • Artilities.Objects.DefaultResponse