0.2.6 • Published 7 years ago

api-lyon v0.2.6

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

Api-lyon

Documentation : https://scrunshes.gitbooks.io/api-lyon/content/

Getting started

yarn add api-lyon

Node

const ApiLyon = require('api-lyon');
const api = new ApiLyon();

api.velov.stations.get()
    .then(response => {
      console.info(response);
    })
    .catch(error => {
      console.error(error);
    });

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);
  });