Query Zeus Tab status from the command line
This commit is contained in:
parent
696baa2d76
commit
aee545d2b9
14
local/bin/zeustab
Executable file
14
local/bin/zeustab
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
base='https://tab.zeus.gent'
|
||||||
|
user='felixvdj'
|
||||||
|
token="$(pass show ugent/zeus/tab)"
|
||||||
|
|
||||||
|
query="$base/users/$user.json"
|
||||||
|
|
||||||
|
[ "$1" = "hist" ] && query="$base/users/$user/transactions.json"
|
||||||
|
|
||||||
|
curl --header 'Accept: application/json' \
|
||||||
|
--header 'Content-Type: application/json' \
|
||||||
|
--header "Authorization: Token token=$token" \
|
||||||
|
--location \
|
||||||
|
"$query"
|
Loading…
Reference in New Issue
Block a user