tfl_api_client 1.0.0-nullsafety.1 copy "tfl_api_client: ^1.0.0-nullsafety.1" to clipboard
tfl_api_client: ^1.0.0-nullsafety.1 copied to clipboard

A client for accessing the TfL API. Please note that the TfL API Client is unofficial and not endorsed by TfL.

example/tfl_api_client_example.dart

import 'dart:io';

import 'package:tfl_api_client/tfl_api_client.dart';

Future<void> main() async {
  final client = clientViaAppKey(Platform.environment['APP_KEY']!);

  final api = TflApiClient(client: client);

  for (var line in await api.lines.getByPathIds(['victoria'])) {
    print(line);
  }

  client.close();
}
0
likes
120
pub points
0%
popularity

Publisher

verified publisherthomasclark.dev

A client for accessing the TfL API. Please note that the TfL API Client is unofficial and not endorsed by TfL.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on tfl_api_client