1.0.0-beta.2 • Published 11 months ago
@cityssm/avanti-api v1.0.0-beta.2
Avanti API for Node
An unofficial wrapper around the Avanti API.
Note:
At this time, this project focuses only on read-only endpoints, primarily on the
api/v1/Reporter
endpoint,
and employee data related endpoints.
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.
⭐ If your company is on the
latest Avanti Self Service Portal (ASSP),
be sure to set latestASSP
to true
.
The current default is false
, which will likely change in the v1.0.0
release.
import { AvantiApi } from '@cityssm/avanti-api'
// Initialize the API
const avanti = new AvantiApi({
tenant: 'avtesting',
// latestASSP: false,
client_id: '',
client_secret: '',
username: '',
password: '',
company: ''
})
// Export report data
const report = await avanti.getReport('CUSTOM_REPORT_ID')
// Output the data
console.log(report)
1.0.0-beta.2
11 months ago
1.0.0-beta.1
11 months ago
1.0.0-beta
11 months ago
0.6.2
1 year ago
0.6.1
2 years ago
0.6.0
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.5.1
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.4.0
2 years ago
0.2.2
2 years ago
0.1.0
2 years ago