Détail du package

tipi-cloudbeds

rgmax45ISC2.1.0

Node.js library to connect to cloudbeds REST API

tipi, cloudbeds

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