edemokrati
Node.js module for the eDemokrati solution from Sem & Stenersen Prokom. This first release targets the public journal part of Lokaldemokrati24:7.
This module will only work with their old solution.
Installation
From npm
$ npm install edemokrati
From GitHub
$ git clone git@github.com:zrrrzzt/edemokrati.git
cd into directory and run setup
$ npm run setup
Methods
journals.getDokumenter
Returns the attached documents for a specific journal.
Pass an options object with the params.
host: The url of the host (required)
journalpostid: The id for the journal (required)
var edm = var options = 'host': 'https://www.notodden.kommune.no' 'journalpostid': '681504' edmjournals
journals.getPostlisteArkivdeler
Returns a list of different archive units.
Pass an options object with the params.
host: The url of the host (required)
fraDato: Search from date. Timestampformatted like '/Date(1449097200000)/' (required)
tilDato: Search to date. Timestampformatted like '/Date(1449097200000)/' (required)
søkestreng: Search string. (optional)
var edm = var options = 'host': 'https://www.notodden.kommune.no' 'fraDato': '\/Date(1449097200000)\/' 'tilDato': '\/Date(1449097200000)\/' 'søkestreng': '' edmjournals
journals.getPostlisteDokumenttyper
Returns a list of different document types.
Pass an options object with the params.
host: The url of the host (required)
fraDato: Search from date. Timestampformatted like '/Date(1413410400000)/' (required)
tilDato: Search to date. Timestampformatted like '/Date(1413410400000)/' (required)
arkivdel: Archive unit. "_" means all other alternatives is listed through the getPostlisteArkivdeler method (required)
søkestreng: Search string. (optional)
var edm = var options = 'host': 'https://www.notodden.kommune.no' 'fraDato': '\/Date(1449097200000)\/' 'tilDato': '\/Date(1449097200000)\/' 'arkivdel': '_' 'søkestreng': '' edmjournals
journals.getPostlisteSok
Returns a list of journals.
Pass an options object with the params.
host: The url of the host (required)
fraDato: Search from date. Timestampformatted like '/Date(1413410400000)/' (required)
tilDato: Search to date. Timestampformatted like '/Date(1413410400000)/' (required)
arkivdel: Archive unit. "_" means all other alternatives is listed through the getPostlisteArkivdeler method (required)
dokumenttype: Type of document. Incoming (I) or Outgoing (U). (required)
søkestreng: Search string. (optional)
var edm = var options = 'host': 'https://www.notodden.kommune.no' 'fraDato': '\/Date(1449097200000)\/' 'tilDato': '\/Date(1449097200000)\/' 'søkestreng': 'bolig' 'arkivdel': '_' 'dokumenttype': 'I' edmjournals
journals.getPostlisteObjekt
Returns one specific journal.
Pass an options object with the params.
host: The url of the host (required)
id: The id for the journal you want to see (required)
var edm = var options = 'host': 'https://www.notodden.kommune.no' 'id': '17016007' edmjournals
Disclaimer
This is not an official API for eDemokrati. I'm not affiliated with Sem & Stenersen Prokom.