summaryrefslogtreecommitdiff
path: root/hypixel_api.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hypixel_api.sh')
-rw-r--r--hypixel_api.sh11
1 files changed, 11 insertions, 0 deletions
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 <path>
+ curl "https://api.hypixel.net/$1" -H "api-key: $HYPIXEL_KEY" 2>/dev/null
+}
+
+get_profiles_by_uuid() {
+ # Usage: get_profiles_by_uuid <uuid>
+ hypixel_request "v2/skyblock/profiles?uuid=$1"
+}
+