How to make a web API call to external site
Hello everyone.
I'm taking the first steps in VB.net. I have an API key provided to me by a sports database. I would like to know how to connect to this database, using an API key to download the data in json format.
What instructions should I write? Thanks so much
Re: How to make a web API call to external site
You should be asking the provider of the API, not us. How you interact with their service is up to them. It's more than likely the case that they have documentation and/or examples available.
Re: How to make a web API call to external site
thanks, in fact I already did and through Postman for Chrome, I did some tests.
I would need the code VB.net to create a web page that makes the request with the verb GET
Re: How to make a web API call to external site
You should be able to simply create a WebClient object and call the appropriate method for the type of data you expect to receive. I'd start by reading the documentation for the WebClient class and its methods, then search for examples of the relevant one(s) if you need them.