Query Zeus Tab status from the command line
This commit is contained in:
parent
696baa2d76
commit
aee545d2b9
1 changed files with 14 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue