From 12d3727fa5308149953973a38029a2344a13719d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 6 Oct 2024 12:52:52 +0200 Subject: snapshot: --- hypixel_api.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hypixel_api.sh (limited to 'hypixel_api.sh') diff --git a/hypixel_api.sh b/hypixel_api.sh new file mode 100644 index 0000000..9f2bb22 --- /dev/null +++ b/hypixel_api.sh @@ -0,0 +1,11 @@ + +hypixel_request() { + # Usage: hypixel_request + curl "https://api.hypixel.net/$1" -H "api-key: $HYPIXEL_KEY" 2>/dev/null +} + +get_profiles_by_uuid() { + # Usage: get_profiles_by_uuid + hypixel_request "v2/skyblock/profiles?uuid=$1" +} + -- cgit