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

outdated

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
0
pub points
31%
popularity

Publisher

unverified uploader

Unofficially Kenall API Client.

Homepage

License

unknown (LICENSE)

Dependencies

ansicolor, args, http, json_annotation, json_serializable, meta

More

Packages that depend on dart_kenall