Replaced Invoke-WebRequest with Invoke-RestMethod

Added formatting as well.
pull/480/head
Jonathan Moss 5 years ago committed by GitHub
parent f51fda3447
commit d12dfcca81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,7 +32,9 @@ but it's still a live weather report in your language.)
Or in PowerShell: 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 Want to get the weather information for a specific location? You can add the desired location to the URL in your
request like this: request like this:

Loading…
Cancel
Save