Created
June 22, 2016 12:16
-
-
Save psycalc/4a6ee8fcc8835d82879fe1f8cf0d025b to your computer and use it in GitHub Desktop.
How to make simple rest api query from powershell, curl windows alternative
This file contains 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 characters
$apiKey = "" #access key сopy pase from rest api provider | |
$uri = "https://andruxnet-random-famous-quotes.p.mashape.com/?cat=movies" #uri of rest api provider | |
Invoke-RestMethod -Method Get -Uri $uri -Header @{ "X-Mashape-Key" = $apiKey } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment