@alheimsins/acos-innsyn

3.0.1 • Public • Published

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

Alheimsins logo

/@alheimsins/acos-innsyn/

    Package Sidebar

    Install

    npm i @alheimsins/acos-innsyn

    Weekly Downloads

    4

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    140 kB

    Total Files

    18

    Last publish

    Collaborators

    • zrrrzzt
    • maccyber