New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

seneca-dsf

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seneca-dsf

Lookup data from DSF (Det sentrale folkeregister)

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
3
Created
Source

Build Status js-standard-style

seneca-dsf

Lookup data from DSF (Det sentrale folkeregister).

To obtain login credentials and other permissions go to infotorg.no

Usage

See all supported methods (dsfOption.method) at node-dsf

'use strict'

const seneca = require('seneca')()
const dsf = require('seneca-dsf')

const dsfOptions = {
  saksref: 'systemtest-av-seneca-dsf',
  method: 'hentDetaljer',
  config: {
    url: 'http://ws-test.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
    namespaceBrukersesjon: 'http://ws.infotorg.no/xml/Admin/Brukersesjon/2006-07-07/Brukersesjon.xsd',
    distribusjonskanal: 'PTP',
    systemnavn: 'seneca-dsf',
    brukernavn: 'your-username',
    passord: 'your-password'
  }
}

const payload = {
  foedselsnr: '01010750160',
  etternavn: 'topstad',
  fornavn: 'tomas'
}

seneca.use(dsf, dsfOptions)

seneca.act('role: dsf, cmd: lookup', payload, (error, data) => {
  if (error) {
    console.error(error)
  } else {
    console.log(data)
  }
})

License

MIT

Keywords

seneca

FAQs

Package last updated on 20 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts