Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

edouardmenayde/api-lyon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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