Artifact c4720c58a4ff96c346ce84400b969375ff8f38963784a890f96dcacafa4b52c2:
- File Invoke-RestMethod-example.ps1 — part of check-in [afac8c43bf] at 2018-06-10 14:07:57 on branch trunk — Invoke-RestMethod example (user: unknown size: 397)
# encoding: ascii # api: powershell # title: # description: Invoke-RestMethod example # version: 0.1 # license: CC0 # x-poshcode-id: 6094 # x-archived: 2016-03-18T23:49:52 # # $headers = @{ 'Content-Type' = "application/x-www-form-urlencoded" 'Accept' = "application/json" } $response = Invoke-RestMethod -Uri $uri -Method POST -Header $headers -Credentail (Get-Credential)