14 lines
216 B
Bash
Executable file
14 lines
216 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -u -e
|
|
|
|
scope="$1"
|
|
class="${2:-}"
|
|
api="https://pool.v0.trr379.de/api"
|
|
|
|
curl \
|
|
-s \
|
|
--fail-with-body \
|
|
-X 'GET' \
|
|
-H "X-DumpThings-Token: ${DUMPTHINGS_TOKEN}" \
|
|
"${api}/${scope}/records/${class}"
|