tfl_api_client 1.0.0 copy "tfl_api_client: ^1.0.0" to clipboard
tfl_api_client: ^1.0.0 copied to clipboard

A client for accessing the TfL API. Please note that Client for TfL API 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 appKey = Platform.environment['APP_KEY']!;

  final client = clientViaAppKey(appKey);

  final api = TflApiClient(client: client);

  final lines = await api.line.get(['metropolitan']);

  client.close();
}
0
likes
150
points
59
downloads

Publisher

verified publisherthomasclark.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on tfl_api_client