Skip to main content

apiverve_dadjokes 1.2.3 copy "apiverve_dadjokes: ^1.2.3" to clipboard
apiverve_dadjokes: ^1.2.3 copied to clipboard

Dad Jokes delivers a random dad joke with every request. Send a plain GET call without parameters to receive a clean punchline ready for display.

Dad Jokes API - Dart/Flutter Client #

Dad Jokes delivers a random dad joke with every request. Send a plain GET call without parameters to receive a clean punchline ready for display.

pub package License: MIT

This is the Dart/Flutter client for the Dad Jokes API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_dadjokes: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_dadjokes/apiverve_dadjokes.dart';

void main() async {
  final client = DadjokesClient('YOUR_API_KEY');

  try {
    final response = await client.execute();
    
    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "joke": "What state do crayons go to on vacation? Color-ado."
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
130
points
82
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dad Jokes delivers a random dad joke with every request. Send a plain GET call without parameters to receive a clean punchline ready for display.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_dadjokes