-1

I'm working on something for a friend at the moment, but I'm not sure how to pull data from the Steam API. How would I import the steamid's from here into an array or something of the sort?

{
    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        string[] SteamId = { };
        foreach (string sid in SteamId)
        {
            textBox1.Text = sid;
        }


    }

    private void textBox1_TextChanged(object sender, EventArgs e)
    {

    }
}

At the moment, i just have a blank array because i'm not sure how i'd go about getting the info from the API.

1 Answers1

1

You'd have to make an HTTP request to that URL from within your code. Then parse the response (default format is JSON). Also, please remove your key from that link you included and get a new Steam API key.

Cheers.

troffaholic
  • 185
  • 1
  • 10