BigGo API PMS Javascript Client is a API written in Javascript.
short future:
Using npm
npm i biggo-api-pms --save
Using yarn
yarn add biggo-api-pms
Using pnpm
pnpm add biggo-api-pms
Using ESM:
import { BiggoAPIPMS } from "biggo-api-pms"
Using CJS:
const { BiggoAPIPMS } = require("biggo-api-pms")
To get started, first obtain a client id and secret from BigGo API. Then, use the following code to obtain an API object:
const api = new BiggoAPIPMS({
clientID: '<Your client ID>',
clientSecret: '<Your client secret>'
})
You can refer to this guide to get the client id and secret
You can access all BigGo API PMS resources using the api object. Simply use the object obtained from new BiggoAPIPMS()
. For example:
// Get list of platforms the user has access.
const platformList = await api.getPlatformList()
// Get list of groups in the platform.
const groupList = await api.getGroupList('<Platform ID>')
// Get list of reports in the platform.
const reportList = await api.getReportList('<Platform ID>')
// Get file content or save report as file.
const reportJson = await api.getReport('<Platform ID>', '<Report ID>', 'json')
if you need more information, you can refer to this document.
This library supports typescript.