Add script to query Cardtrader API

This commit is contained in:
The Magician 2024-11-24 17:47:00 +00:00
parent 2ab69dce8e
commit 9d6d39d75f
1 changed files with 7 additions and 0 deletions

7
sevenkeys/cardtrader Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# Note: Make sure to export BEARER before using
URL="https://api.cardtrader.com/api/v2"
curl --silent "$URL/$1" -H "Authorization: Bearer $BEARER" | jq .