KevyPorter / hypixel-csharp

A C# class for fetching information from the Hypixel Public API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hypixel C#

A C# class for fetching information from the Hypixel Public API https://api.hypixel.net

Requirements

Usage

To interact with the API you need an API key, you can get a key by doing "/api" on the Hypixel Network.

public partial class Example : Form
    {
        public Example()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string playerInfo = HypixelAPI.getPlayerByUuid("af2d221ba92f47618ab4e9b73e66447b");
            dynamic api = JsonConvert.DeserializeObject(playerInfo);

            string displayName = api.player.displayname;

            richTextBox1.Text = "Display Name: " + displayName;
        }
    }

Example

About

A C# class for fetching information from the Hypixel Public API


Languages

Language:C# 100.0%