Skip to content
Wrapper for acos innsyn
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
renovate.json

README.md

Build Status 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.

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

getMedlemmer

Lists all members of a given utvalg.

const { getMembers } = require('@alheimsins/acos-innsyn')
const options = {
  endpoint: 'https://www.baerum.kommune.no/innsyn/politikk',
  utvalgId: '8'
}
getMembers(options)
  .then(console.log)
  .catch(console.error)

License

MIT

You can’t perform that action at this time.