Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

UtopiaDreamTeam/DotJokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An unofficial wrapper for Sv443's jokeapi.

Why jokes?

As a self-taught and hobbyist programmer, I wanted to demonstrate to the companies that I take this seriously. So what's better than "jokes"?

Features

Ping:

var result=await new JokesManager().PingAsync();

Getting basic info :

var result=await new JokesManager().GetInfoAsync();

Get one Joke :

var joke = await new JokesManager().GetJoke(new JokeRequestInfo()
{
  BlackList = new List<Flag>() { Flag.Nsfw },
  Categories = new List<JokeCategory>() { JokeCategory.Misc, JokeCategory.Programming },
  Language = Language.en,
  //FilterEnd = 10,
  //FilterStart = 0,
  SearchString = "Bill",
  Type = JokeType.Any
});

Get multiple jokes :

var jokes = (await new JokesManager().GetJokes(new JokeRequestInfo()
{

  Language = Language.en,
  Type = JokeType.Any
},count:3)).Jokes;

Post a Joke :

await jokesManager.PostJokes(new JokeInfo()
{
Type = JokeType.Single,
Category = JokeCategory.Misc,
Joke = "I forgot my line",
FlagList = new List<Flag>(),
Language=Language.en,
},dryRun:true);

Releases

No releases published

Packages

No packages published

Languages