markstammdaten-validator

1.0.1 • Public • Published

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 as Marktfunktion
  • After everything is completed you get a MaStR-Nr. which is your requesterId it will start with SOMand 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

STROMDAO GmbH
Gerhard Weiser Ring 29
69256 Mauer
Germany

+49 6226 968 009 0

kontakt@stromdao.com

Handelsregister: HRB 728691 (Amtsgericht Mannheim)

Project Website: https://co2offset.io/

LICENSE

Apache-2.0

Package Sidebar

Install

npm i markstammdaten-validator

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

20.7 kB

Total Files

8

Last publish

Collaborators

  • zoernert