I need to do an API Get call on PowerShell 2.0 so I can't use the Invoke-RestMethod
as it was introduced in version 3.0.
Anyone know how it can be done using PowerShell 2.0?
I have the following so far but don't know how to get the data from it. Preferably to a text file.
$request = [System.Net.WebRequest]::Create('http://www.google.com')
How do I extract data from it? If pasted into a browser it returns a simple text file with data in it.