UNPKG

tipi-cloudbeds

Version:

Node.js library to connect to cloudbeds REST API

31 lines (26 loc) 582 B
# Tipi Cloudbeds SDK This is a Node.js library which implements cloudbeds REST requests ## How to use ### Install ``` npm install --save tipi-cloudbeds ``` ### Example ```javascript 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) }) ```