1.0.3 • Published 6 years ago

node-passrestaurant v1.0.3

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

node-passrestaurant

Une API pour la carte Pass Restaurant de Sodexo

Usage

const Sodexo = require('node-passrestaurant')
const sodexo = new Sodexo({
  {
    "PUBLIC_ID" : "",
    "CLIENT_KEY" : "",
    "CLIENT_ID" : "",
    "WS_VERSION" : ""
})

Sign in

sodexo.signIn(login, password)

Get Consumer Info

sodexo.getConsumerInfos(login)
  .then(response => {
    console.log(response)
  })

Get transactions

sodexo.getTransactions(login, cardId, cardType)
  .then(response => {
    console.log(response)
  })