Transilien API 1.0.0
An asynchronous client library for the real time Transilien API.
const TransilienApi = ; const client = basic_authorization: ''; client ;
Installation
npm install transilien-api
You can follow instructions here to get your access authorization.
const TransilienApi = ; const client = basic_authorization: '<basic token>';
Requests
With endpoints
You now have the ability to make GET requests against the API via the convenience methods.
client;
You simply need to pass the endpoint and parameters to one of convenience methods. Take a look at the documentation site to reference available endpoints.
client;
With client methods
You can use the defined client methods to call endpoints.
client;
Promises
The request will return Promise.
client ;