Avanti API for Node
A wrapper around the Avanti API.
Note:
At this time, this project focuses only on read-only endpoints and primarily on the
api/v1/Reporter
endpoint.
Installation
npm install @cityssm/avanti-api
Usage
⭐ See the Avanti API documentation on
Authentication and Authorization
for instructions on creating the needed credentials.
Note that each endpoint needs to be properly initialized in Avanti as well.
import avanti from '@cityssm/avanti-api'
avanti.setConfiguration({
base_api_url: 'https://myavanti.ca/avtesting-api',
client_id: '',
client_secret: '',
username: '',
password: '',
company: ''
})
const report = await avanti.getReport('CUSTOM_REPORT_ID')
console.log(report)