Skip to content

Instantly share code, notes, and snippets.

@psycalc
Created June 22, 2016 12:16
Show Gist options
  • Save psycalc/4a6ee8fcc8835d82879fe1f8cf0d025b to your computer and use it in GitHub Desktop.
Save psycalc/4a6ee8fcc8835d82879fe1f8cf0d025b to your computer and use it in GitHub Desktop.
How to make simple rest api query from powershell, curl windows alternative
$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