UNPKG

api-lyon

Version:
46 lines (30 loc) 657 B
# Api-lyon Documentation : [https://scrunshes.gitbooks.io/api-lyon/content/](https://scrunshes.gitbooks.io/api-lyon/content/) ## Getting started ```bash yarn add api-lyon ``` ### Node ```javascript const ApiLyon = require('api-lyon'); const api = new ApiLyon(); api.velov.stations.get() .then(response => { console.info(response); }) .catch(error => { console.error(error); }); ``` ### Typescript ```typescript import * as ApiLyon from 'api-lyon'; const api = new ApiLyon(); api.velov.status.get('wfs') .then(response => { console.info(response); }) .catch(error => { console.error(error); }); ```