This video demonstrates how to call a simple REST API from power shell.
code snippet is here!
$uri = "api.openweathermap.org/data/2.5/weather?q=Mysore,i…"
$response = Invoke-WebRequest -Uri $uri
$response.Content | ConvertFrom-Json | ConvertTo-Html |out-File weather.htm; ii weather.htm
コメント