Api-Lyon

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

Authentication

const api = new ApiLyon({
  auth: {
    login: '[email protected]',
    password: 'The cake is a lie'
  }
});

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

results matching ""

    No results matching ""