@democracy-deutschland/bt-dip-sdk
Advanced tools
Comparing version 0.1.0-alpha.0 to 0.1.0-alpha.1
{ | ||
"name": "@democracy-deutschland/bt-dip-sdk", | ||
"version": "0.1.0-alpha.0", | ||
"version": "0.1.0-alpha.1", | ||
"description": "Bundestag DIP - TypeScript SDK", | ||
@@ -8,2 +8,3 @@ "main": "dist/index.js", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/demokratie-live/bt-dip-sdk", | ||
"repository": "https://github.com/demokratie-live/bt-dip-sdk", | ||
@@ -15,6 +16,8 @@ "scripts": { | ||
"gen-docs": "typedoc --out docs src/index.ts", | ||
"test": "ts-node-dev src/tests/usage.ts" | ||
"test": "ts-node-dev -r dotenv/config src/tests/usage.ts" | ||
}, | ||
"devDependencies": { | ||
"@openapitools/openapi-generator-cli": "^2.3.3", | ||
"@types/node": "^15.12.2", | ||
"dotenv": "^10.0.0", | ||
"ts-node-dev": "^1.1.6", | ||
@@ -21,0 +24,0 @@ "typedoc": "^0.20.36", |
🚧 Still under Constructionn 🚧 | ||
# bt-dip-sdk | ||
# 🏛 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 | ||
@@ -12,7 +14,13 @@ | ||
``` | ||
yarn add @democracy-deutschland/bt-dip-sdk | ||
yarn add @democracy-deutschland/bt-dip-sdk@0.1.0-alpha.0 | ||
``` | ||
## Usagee | ||
## Prerequirements | ||
### ApiKey | ||
You can get an apiKey from https://dip.bundestag.de/über-dip/hilfe/api | ||
## Usage | ||
```ts | ||
@@ -22,3 +30,3 @@ import { DipApi, Configuration } from "@democracy-deutschland/bt-dip-sdk"; | ||
const config = new Configuration({ | ||
apiKey: "ApiKey N64VhW8.yChkBUIJeosGojQ7CSR2xwLf3Qy7Apw464", | ||
apiKey: "ApiKey #YOUR_API_KEY#", // Replace #YOUR_API_KEY# with your api key | ||
}); | ||
@@ -36,1 +44,9 @@ | ||
``` | ||
## Contribute | ||
```sh | ||
yarn | ||
# Edit swagger.yml | ||
yarn gen | ||
``` |
import { DipApi, Configuration } from "../index"; | ||
const config = new Configuration({ | ||
apiKey: "ApiKey N64VhW8.yChkBUIJeosGojQ7CSR2xwLf3Qy7Apw464", | ||
apiKey: `ApiKey ${process.env.API_KEY}`, | ||
}); | ||
@@ -6,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
42170
17
115
1
50
6
2