I've got a current situation where I cannot seem to figure out how to use the correct syntax in VBA to use an API key to get json data. The curl command would be:
curl --header "api-key: abc123" -X GET "https://api-hazards.atcouncil.org/public/v1/wind.json?lat=33.996&lng=-84.006"
I'm using the following but I'm sure calling the API key isn't correct and my Googling is failing me.
With CreateObject("WinHttp.WinHttpRequest.5.1")
.Open "GET", "[https://api-hazards.atcouncil.org/public/v1/wind.json?lat=33.996&lng=-84.006](https://api-hazards.atcouncil.org/public/v1/wind.json?lat=33.996&lng=-84
12