Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DWSR/15f3e8bf37cf8d3d87b9cc99191efd9a to your computer and use it in GitHub Desktop.
Save DWSR/15f3e8bf37cf8d3d87b9cc99191efd9a to your computer and use it in GitHub Desktop.
$jsonObject = @{
TERMID = 3232
PINSERV = '192.168.1.52:5145'
MERCHANTID = 01
ID = 1421336011
Serv = '192.168.1.180:5150'
Lane = 2017
} | ConvertTo-Json
$TestDir = 'path/filename.xml';
$resp = Invoke-RestMethod -Method 'POST' -Body $jsonobject -ContentType 'application/json'
$resp | fl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment