vnthttpclient
v1.0.6
Published
vntrip httpclient
Downloads
13
Readme
script:
npm i vnthttpclient --save
const packageIt = require('vnthttpclient')
packageIt.init(require('./config/index'), require('./config/VntService'), true)
packageIt.VntripApi.get('v3/hotel/hello').then(result => {
console.log('result = ', result);
}).catch(err => {
console.log('err: ', err);
console.log(err);
})
packageIt.InternalService.UserV3.get('hello').then(result => {
console.log('result = ', result);
}).catch(err => {
console.log('err: ', err);
console.log(err);
})
packageIt.BookingComApi.get('blockAvailability', {}).then(result => {
console.log('result bk = ', result);
}).catch(err => {
console.log('err: ', err);
console.log(err);
})