Add script to pay an ice tea to Zeus
This commit is contained in:
parent
a0eda91673
commit
a9b5295293
11
local/bin/icetea
Executable file
11
local/bin/icetea
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
base='https://tap.zeus.gent'
|
||||||
|
user='felixvdj'
|
||||||
|
token="$(pass show ugent/zeus/tap)"
|
||||||
|
|
||||||
|
curl --header 'Accept: application/json' \
|
||||||
|
--header 'Content-Type: application/json' \
|
||||||
|
--header "Authorization: Token token=$token" \
|
||||||
|
--data '{"order":{"order_items_attributes":[{"count":1,"product_id":1}]}}' \
|
||||||
|
--location \
|
||||||
|
"$base/users/$user/orders.json"
|
Loading…
Reference in New Issue
Block a user