markstammdaten-validator
v1.0.1
Published
Simple Node module to request data from MaSTr (Marktstammdaten Register) using SOAP
Downloads
2
Maintainers
Readme
markstammdaten-validator
Request Marketdata from Marktstammdatenregister using SOAP.
Installation
Use the package manager npm to install markstammdaten-validator
Configuration - API Key - Webdienst Nutzer
The config object for the validator requires you to set an apiKey
and a requesterId
like:
{
apiKey: 'YOUR_API_KEY',
requesterId: ''
}
Register for Martkstammdatenregister (MaStR)
Get apiKey
- Go to the MaStR Zugang ansehen
- Click on
Benutzer
- Click on
Neuen Benutzer registrieren
- Select third option
Der neue Benutzer ist kein Mensch...
- Your API-Key will be shown (540 characters long)
Get requesterId
- Neuen Marktakteur anlegen
- Use
Sonstiger Marktakteur
asMarktfunktion
- After everything is completed you get a
MaStR-Nr.
which is yourrequesterId
it will start withSOM
and has a length of 15 charts.
Useage as a module
npm install --save markstammdaten-validator
const validator = require("markstammdaten-validator");
const app = async function() {
let v = new validator({
apiKey:'KEY_WEBDIENST_USER',
requesterId:'MaSTRNummer_WEBDIENST_USER'
});
console.log(await v.getEinheit('SEE970942383410'));
console.log(await v.getLokation('SEL982068309366'));
}
app();
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. Details on contributing.
Maintainer / Imprint
Project Website: https://co2offset.io/