Skip to content

Instantly share code, notes, and snippets.

@ATLPhenx
Created April 25, 2016 22:30
Show Gist options
  • Save ATLPhenx/6ec1c4368d024aa363b8c51e019720f7 to your computer and use it in GitHub Desktop.
Save ATLPhenx/6ec1c4368d024aa363b8c51e019720f7 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';
Invoke-RestMethod $TestDir -Method 'POST' -Body $jsonobject -ContentType 'application/json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment