rim-service-client
v3.0.1
Published
Gets data from ISI-lokal
Downloads
7
Readme
rim-service-client
Create query
getDataToArchive
- antallElevDokument
- fylke
saveStatusArchived
- fagsystemNavn
- dokumentId
- fodselsnummer
- arkiveringUtfort
saveStatusArchivedError
- fagsystemNavn
- feilId
- feiltype
- detaljertBeskrivelse
Example
const client = require('./index')
const argOpts = {
antallElevDokument: 1,
fylke: 1
}
const args = client.getDataToArchive(argOpts)
console.log(args)
const clientOpts = {
url: 'google.no',
username: 'test',
password: 'test',
data: args
}
/* Using callback
client(clientOpts, (err, data) => {
console.log(err || data)
process.exit(0)
})
*/
client(clientOpts).then((data) => {
console.log(data)
process.exit(0)
}).catch((err) => {
console.error(err)
process.exit(1)
})