tipi-cloudbeds
v2.1.0
Published
Node.js library to connect to cloudbeds REST API
Downloads
12
Readme
Tipi Cloudbeds SDK
This is a Node.js library which implements cloudbeds REST requests
How to use
Install
npm install --save tipi-cloudbeds
Example
const { Cloudbeds, Enums: { GrantType } } = require('tipi-cloudbeds')
const cloudbeds = new Cloudbeds({
clientId: 'your client id',
clientSecret: 'your client secret'
})
cloudbeds.generateToken({
grantType: GrantType.RefreshToken,
refreshToken: 'your refresh token'
})
.then(result => {
console.log(result)
})
.catch(error => {
console.log(error)
})