Numerous Pulsating Martians

    @democracy-deutschland/bt-dip-sdk
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    🚧 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

    TypeScript Client

    https://demokratie-live.github.io/bt-dip-sdk/classes/dipapi.html

    Swagger

    https://app.swaggerhub.com/apis-docs/DEMOCRACY/BundestagDIP/0.1

    Install

    yarn add @democracy-deutschland/bt-dip-sdk
    

    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#", // Replace #YOUR_API_KEY# with 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
    # Edit swagger.yml
    yarn gen

    Keywords

    none

    Install

    npm i @democracy-deutschland/bt-dip-sdk

    DownloadsWeekly Downloads

    4

    Version

    0.1.1

    License

    Apache-2.0

    Unpacked Size

    1.46 MB

    Total Files

    106

    Last publish

    Collaborators

    • mananruck
    • democracy-live