MichaelDark / jokeapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pub Package

API wrapper for jokeapi.dev

Features

  • RawJokeApiClient, that performs raw requests to the JokeAPI.
  • JokeApiClient, that performs requests to the JokeAPI.

Usage

To execute requests and get raw responses, use RawJokeApiClient:

final jokeClient = RawJokeApiClient();
final jokeResponse = await jokeClient.getJoke(JokeOptions([JokeCategory.any]));

To execute requests and get responses wrapped with built-in models, use JokeApiClient:

final jokeClient = JokeApiClient();
final joke = await getSingleJoke(SingleJokeOptions([JokeCategory.any]));

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%