From d12dfcca813db3d2870a4c333260d7968ffdffb6 Mon Sep 17 00:00:00 2001 From: Jonathan Moss Date: Fri, 26 Jun 2020 00:06:31 -0400 Subject: [PATCH] Replaced Invoke-WebRequest with Invoke-RestMethod Added formatting as well. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 864d23f..3c36ab4 100644 --- a/README.md +++ b/README.md @@ -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: