Replaced Invoke-WebRequest with Invoke-RestMethod

Added formatting as well.
This commit is contained in:
Jonathan Moss 2020-06-26 00:06:31 -04:00 committed by GitHub
parent f51fda3447
commit d12dfcca81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,9 @@ but it's still a live weather report in your language.)
Or in PowerShell:
(Invoke-WebRequest http://wttr.in).Content
```PowerShell
Invoke-RestMethod http://wttr.in
```
Want to get the weather information for a specific location? You can add the desired location to the URL in your
request like this: