https://github.com/hexindai/id5
国政通 NodeJS SDK
https://github.com/hexindai/id5
nodejs sdk
Last synced: 5 months ago
JSON representation
国政通 NodeJS SDK
- Host: GitHub
- URL: https://github.com/hexindai/id5
- Owner: hexindai
- License: mit
- Created: 2018-05-25T16:00:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T02:15:47.000Z (over 7 years ago)
- Last Synced: 2025-10-16T11:05:11.042Z (8 months ago)
- Topics: nodejs, sdk
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
id5
======
国政通 NodeJS SDK
[](https://www.npmjs.com/package/id5)
[](https://travis-ci.org/hexindai/id5)
[](https://codecov.io/github/hexindai/id5?branch=master)
[](https://david-dm.org/hexindai/id5)
[](https://snyk.io/test/npm/id5)
[](https://www.npmjs.com/package/id5)
### Installation
```bash
npm i id5 -S
```
### Usage
```js
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 {
// ...
}
```
### Debug
Set `DEBUG` env variable to run your program.
`DEBUG=id5` npm run \
### LICENSE
[MIT](LICENSE)