Skip to content

Example Requests

Max Walsch edited this page Dec 24, 2015 · 1 revision

Request friends for a player from Hypixel API

Just write this one on the queue on which the module lib/api/hypixel.js listens (default: requests_hypixel).

{
    "method": "friends",
    "parameters": {
        "uuid": "952d258fc0fa49df844e745131367a98"
    },
    "respond": "responses_hypixel"
}

This will request the friend list of the player with the unique id 952d258fc0fa49df844e745131367a98 (RFC 4122 compliant UUIDs won't work) and writes the result on the queue responses_hypixel.

Request player profile for UUID from Minecraft API

Just write this one on the queue on which the module lib/api/minecraft-uuid.js listens (default: requests_mojang_uuid).

{
"uuid": "952d258fc0fa49df844e745131367a98",
"respond": "responses_mojang_uuid"
}

This will request the player profile for the unique id 952d258fc0fa49df844e745131367a98 (RFC 4122 compliant UUIDs won't work) and writes the result on the queue responses_mojang_uuid.

Clone this wiki locally