jokeapi 0.1.0 copy "jokeapi: ^0.1.0" to clipboard
jokeapi: ^0.1.0 copied to clipboard

API wrapper for jokeapi.dev

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]));
2
likes
110
pub points
0%
popularity

Publisher

unverified uploader

API wrapper for jokeapi.dev

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, http, json_annotation, recase

More

Packages that depend on jokeapi