Skip to content

Instantly share code, notes, and snippets.

@ATLPhenx
Created April 26, 2016 20:09
Show Gist options
  • Save ATLPhenx/b2a266d3a2121dd63ffd44edb11cfc3f to your computer and use it in GitHub Desktop.
Save ATLPhenx/b2a266d3a2121dd63ffd44edb11cfc3f to your computer and use it in GitHub Desktop.
$jsonObject = @{
"TERMINALID" = "3232"
"PINSERV" = "192.168.1.52:5145"
"MERCHANTID" = "01"
"ID" = "1421336011"
"Serv" = "192.168.1.180:5150"
"Lane" = "2017"
} | ConvertTo-Json
$TestDir = 'URL/Filename.xml';
$makeNewFile = Invoke-RestMethod $TestDir -Method POST -Body $jsonobject -ContentType application/json
echo $makeNewFile
echo $TestDir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment