Skip to content

MichaelDark/jokeapi

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages