43 lines
1.2 KiB
Bash
Executable File
43 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
source ./.env
|
|
|
|
BASE_URL=https://www-genesis.destatis.de/genesisWS/rest/2020
|
|
|
|
# curl -X POST "$BASE_URL/helloworld/logincheck" \
|
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
|
# -H "username: c7a23d31ee1b4af6bc30c5c49840e57b" \
|
|
|
|
curl -X POST "$BASE_URL/data/tablefile" \
|
|
-H "Content-Type: application/x-www-form-urlencoded" \
|
|
-H "username: $DESTATIS_TOKEN" \
|
|
-d "name=23131-0002" \
|
|
-d "startyear=2010" \
|
|
-d "endyear=2012" \
|
|
-d "compress=true" \
|
|
-d "job=true" \
|
|
-d "format=csv" \
|
|
-d "language=de" \
|
|
--output start-job.json
|
|
|
|
# curl -X POST "$BASE_URL/data/tablefile" \
|
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
|
# -H "username: $DESTATIS_TOKEN" \
|
|
# -d "name=23131-0002_625860825" \
|
|
# -d "area=Alle" \
|
|
# --output output.zip
|
|
|
|
# curl -X POST "$BASE_URL/catalogue/results" \
|
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
|
# -H "username: $DESTATIS_TOKEN"
|
|
|
|
# curl -X POST "$BASE_URL/catalogue/results" \
|
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
|
# -H "username: $DESTATIS_TOKEN"
|
|
|
|
# curl -X POST "$BASE_URL/catalogue/jobs" \
|
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
|
# -H "username: $DESTATIS_TOKEN" \
|
|
# -d "selection=*"
|
|
#
|