Skip to content

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

License

Notifications You must be signed in to change notification settings

tnc1997/dart-tfl-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client for TfL API

A client for accessing the TfL API.

Please note that Client for TfL API is unofficial and not endorsed by TfL.

Getting Started

  1. Add this package to your application.

    dart pub add tfl_api_client
  2. Create a variable to store your app key.

    final appKey = Platform.environment['APP_KEY'];
  3. Obtain an HTTP client using your app key.

    final client = clientViaAppKey(appKey);
  4. Create an API client using the HTTP client.

    final api = TflApiClient(client: client);
  5. Fetch data from the TfL API using the API client.

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages