configuration/local/bin/icetea
2020-10-16 10:26:56 +02:00

12 lines
375 B
Bash
Executable File

#!/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":180}]}}' \
--location \
"$base/users/$user/orders.json"