国政通 NodeJS SDK
npm i id5 -S
const ID5 = require('id5');
const id5 = new ID5({
username: 'runrioter',
password: 'runrioterpsw',
wsdlUrl: 'https://some.domain/someServices?wsdl',
key: '87651234',
iv: '87651234',
});
const matched = await id5.validateIDInfo('马冬梅', '21062419820628XXXX');
if (matched) {
// ...
} else {
// ...
}
Set DEBUG
env variable to run your program.
DEBUG=id5
npm run <some-script>