tipi-cloudbeds

2.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tipi-cloudbeds

Weekly Downloads

3

Version

2.1.0

License

ISC

Unpacked Size

31 kB

Total Files

14

Last publish

Collaborators

  • sepisoad
  • rgmax
  • mhmardani
  • hadi-10
  • pixelsandcode