APIs as Objects: `Invoke-RestMethod`

Invoke-RestMethod asks a web API for data and turns its JSON answer into objects, so a weather forecast arrives ready for Select-Object, Where-Object and the rest of the pipeline, and query parameters after a ? in the address ask for exactly what you want.

Updated

Cheat sheet for the lesson APIs as Objects: `Invoke-RestMethod`: Invoke-RestMethod asks a web API for data and turns its JSON answer into objects, so a weather forecast arrives ready for Select-Object, Where-Object and the rest of the pipeline, and query parameters after a ? in the address ask for…
Category
PowerShell
Level
Journeyman
Tags
API, invoke-restmethod, JSON, powershell, Query String