3.0.1 • Published 3 years ago

@alheimsins/acos-innsyn v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

js-standard-style

acos-innsyn

A Node.js module for connecting to the Acos Innsyn solution from Acos.

This API is based on screenscraping and might break without warning.

API

Configure the module with an options object containing the endpoint.

getUtvalg

Lists all utvalg.

(async () => {
  const { getUtvalg } = require('@alheimsins/acos-innsyn')
  const options = {
    endpoint: 'https://www.baerum.kommune.no/innsyn/politikk'
  }
  try {
    const utvalg = await getUtvalg(options)
    console.log(utvalg)
  } catch (error) {
    console.error(error)
  }
})()

getMedlemmer

Lists all members of a given utvalg.

(async () => {
  const { getMedlemmer } = require('@alheimsins/acos-innsyn')
  const options = {
    endpoint: 'https://www.baerum.kommune.no/innsyn/politikk',
    utvalgId: '8'
  }
  try {
    const medlemmer = await getMedlemmer(options)
    console.log(medlemmer)
  } catch (error) {
    console.error(error)
  }
})()

License

MIT

About

Created with ❤ for Alheimsins

3.0.1

3 years ago

3.0.0

3 years ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

6 years ago