From 9d6d39d75ff8426569ff983f6e08983e50215460 Mon Sep 17 00:00:00 2001 From: The Magician Date: Sun, 24 Nov 2024 17:47:00 +0000 Subject: [PATCH] Add script to query Cardtrader API --- sevenkeys/cardtrader | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 sevenkeys/cardtrader diff --git a/sevenkeys/cardtrader b/sevenkeys/cardtrader new file mode 100755 index 0000000..512095a --- /dev/null +++ b/sevenkeys/cardtrader @@ -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 .