Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@cityssm/avanti-api

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cityssm/avanti-api

A wrapper around the Avanti API.


Version published
Weekly downloads
4
decreased by-69.23%
Maintainers
1
Weekly downloads
 
Created

Avanti API for Node

npm (scoped) Codacy Badge Maintainability

A 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 avanti from '@cityssm/avanti-api'

// Initialize the API
avanti.setConfiguration({
  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)

FAQs

Package last updated on 27 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts