moleculer-insee-sirene
Version:
Moleculer service for calling INSEE Sirene API
30 lines (25 loc) • 1.98 kB
Markdown
# moleculer-insee-sirene
[](https://travis-ci.org/YourSoftRun/moleculer-insee-sirene)
[](https://coveralls.io/github/YourSoftRun/moleculer-insee-sirene?branch=master)
[](https://www.codacy.com/app/Hugome/moleculer-insee-sirene?utm_source=github.com&utm_medium=referral&utm_content=YourSoftRun/moleculer-insee-sirene&utm_campaign=Badge_Grade)
[](https://codeclimate.com/github/YourSoftRun/moleculer-insee-sirene/maintainability)
[](https://david-dm.org/YourSoftRun/moleculer-insee-sirene)
[](https://snyk.io/test/github/YourSoftRun/moleculer-insee-sirene)
[](https://www.npmjs.com/package/moleculer-insee-sirene)
[](https://app.fossa.com/projects/git%2Bgithub.com%2FYourSoftRun%2Fmoleculer-insee-sirene?ref=badge_shield)
## How to use it
```js
const InseeSireneMixin = require('moleculer-insee-sirene')
module.exports = {
mixins: [InseeSireneMixin],
settings: {
/** @type {Object} Keys given by https://api.insee.fr/catalogue/site/themes/wso2/subthemes/insee/pages/item-info.jag?name=Sirene&version=V3&provider=insee. */
keys: {
/** @type {String} Consumer key given by INSEE */
key: '',
/** @type {String} Consumer secret given by INSEE */
secret: ''
}
}
}
```