dart_kenall 1.4.0 copy "dart_kenall: ^1.4.0" to clipboard
dart_kenall: ^1.4.0 copied to clipboard

Unofficially Kenall API Client.

example/dart_kenall_example.dart

import 'package:http/http.dart' as http;

import 'package:dart_kenall/dart_kenall.dart';
import 'package:dart_kenall/src/utils/io.dart';

Future<void> main() async {
  final config = Config(
    apiKey: '', // set your api key.
  );
  final kenallClient = KenallClient(config, http.Client());
  final response = await kenallClient.getCities(
    GetCitiesRequest(prefectureCode: prefectureCode['東京都']!),
  );
  printSuccessAndExit(response.cities[0].toJson().toString());
}
1
likes
130
pub points
0%
popularity

Publisher

unverified uploader

Unofficially Kenall API Client.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

ansicolor, args, http, json_annotation, json_serializable, meta

More

Packages that depend on dart_kenall