0.6.2 • Published 4 months ago

@cityssm/avanti-api v0.6.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Avanti API for Node

npm (scoped) DeepSource Maintainability

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.

import { AvantiApi } from '@cityssm/avanti-api'

// Initialize the API
const avanti = new AvantiApi({
  base_api_url: 'https://myavanti.ca/avtesting-api',
  client_id: '',
  client_secret: '',
  username: '',
  password: '',
  company: ''
})

// Export report data
const report = await avanti.getReport('CUSTOM_REPORT_ID')

// Output the data
console.log(report)
0.6.2

4 months ago

0.6.1

5 months ago

0.6.0

5 months ago

0.5.0

7 months ago

0.4.1

10 months ago

0.5.1

7 months ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.4.0

1 year ago

0.2.2

1 year ago

0.1.0

1 year ago