jeudi 28 décembre 2017

Related to Get service call

I just created a HTTP get request to get the content(All the Badges) from stack overflow for my console application as shown below :

  public void getStackBadges()
        {
            var client = new HttpClient();
            client.BaseAddress = new Uri("http://ift.tt/2C4HEJW");
            var res = client.GetAsync(client.BaseAddress).Result;
            Console.WriteLine(res);
        }

Can anybody please tell if i want to get all the badges from stack overflow using this API what i need to do. I don't realy understand the format of result that i am getting on my Cmd prmt !




Aucun commentaire:

Enregistrer un commentaire