JSPM

@cityssm/green-button-subscriber

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q30112F
  • License MIT

Handles the OAuth authentication, downloading, and parsing of Green Button API data.

Package Exports

  • @cityssm/green-button-subscriber

Readme

Green Button Subscriber

npm (scoped) DeepSource Maintainability

Handles the OAuth authentication, downloading, and parsing of Green Button API data.

Currently only testing with UtilityAPI's Green Button implementation.

Installation

npm install @cityssm/green-button-subscriber

Usage

⭐ All output is parsed and returned a fully typed object. ⭐

import * as greenButtonSubscriber from '@cityssm/green-button-subscriber'

// Pass the base URL, client ID, client secret, etc.
greenButtonSubscriber.setConfiguration(config)

// Get the authorizations
const greenButtonJson = await greenButtonSubscriber.getAuthorizations()

Just Looking to Parse Green Button XML?

Check out @cityssm/green-button-parser.