3.0.1 • Published 5 years ago

rim-service-client v3.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Build Status js-standard-style

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)
})

License

MIT

3.0.1

5 years ago

3.0.0

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.5

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago