Tipi Mews SDK
This is a Node.js library which implements mews REST
requests
How to use
Install
npm install --save tipi-mews
Example
const { Mews, Enums: { ReservationState } } = require('tipi-mews')
const mews = new Mews({
clientToken: 'your client token',
demoServer: true
})
mews.getAllReservation({
AccessToken: 'your access token',
StartUtc: '2019-08-01T10:00:00Z',
EndUtc: '2019-09-01T10:00:00Z',
States: [
ReservationState.Created,
ReservationState.Canceled
]
})
.then(result => {
console.log(result)
})
.catch(error => {
console.log(error)
})