Created
August 19, 2019 21:14
-
-
Save steviecoaster/0aa95ba792a8067c7db329b9b398fb20 to your computer and use it in GitHub Desktop.
Revisions
-
steviecoaster created this gist
Aug 19, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ function Get-DadJoke { [cmdletBinding()] Param() process { $header = @{ Accept = "application/json" } $joke = Invoke-RestMethod -Uri "https://icanhazdadjoke.com/" -Method Get -Headers $header $joke.joke } }