🚧 Still under Constructionn 🚧
🏛 Dokumentations- und Informationssystems für Parlamentsmaterialien (DIP) – SDK
TypeScript SDK for the bundestag dip rest api: https://dip.bundestag.de/über-dip/hilfe/api
Docs
https://demokratie-live.github.io/bt-dip-sdk/classes/dipapi.html
Install
yarn add @democracy-deutschland/bt-dip-sdk@0.1.0-alpha.0
Prerequirements
ApiKey
You can get an apiKey from https://dip.bundestag.de/über-dip/hilfe/api
Usage
import { DipApi, Configuration } from "@democracy-deutschland/bt-dip-sdk";
const config = new Configuration({
apiKey: "ApiKey #YOUR_API_KEY#",
});
const api = new DipApi(config);
api
.getVorgaenge({
fDatumStart: "2020-06-01",
fDatumEnd: "2020-06-20",
})
.then(({ data }) => console.log(data))
.catch(console.error);
Contribute
yarn
yarn gen