apiverve_babynamegenerator 1.1.14 copy "apiverve_babynamegenerator: ^1.1.14" to clipboard
apiverve_babynamegenerator: ^1.1.14 copied to clipboard

Baby Name Generator is a simple tool for generating baby names. It returns a list of baby names.

Baby Name Generator API - Dart/Flutter Client #

Baby Name Generator is a simple tool for generating baby names. It returns a list of baby names.

pub package License: MIT

This is the Dart/Flutter client for the Baby Name Generator API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_babynamegenerator: ^1.1.14

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_babynamegenerator/apiverve_babynamegenerator.dart';

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

  try {
    final response = await client.execute({
      'gender': 'male',
      'count': 1
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "count": 3,
    "names": [
      {
        "firstName": "Gladys",
        "middleName": "Emily",
        "fullName": "Gladys Emily"
      },
      {
        "firstName": "Sandra",
        "middleName": "Tasha",
        "fullName": "Sandra Tasha"
      },
      {
        "firstName": "Patricia",
        "middleName": "Rosemary",
        "fullName": "Patricia Rosemary"
      }
    ]
  }
}

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
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Baby Name Generator is a simple tool for generating baby names. It returns a list of baby names.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_babynamegenerator