Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertWaiteREPAY/34fae3707b3bb841b6991e1573bbb839 to your computer and use it in GitHub Desktop.
Save RobertWaiteREPAY/34fae3707b3bb841b6991e1573bbb839 to your computer and use it in GitHub Desktop.
PSBlog007
Function Logout-Acumatica
{
param(
[Parameter(Mandatory=$true)]
[Microsoft.PowerShell.Commands.WebRequestSession]$WebSession,
$EndPoint = $env:AcumaticaTestEndPoint
)
$Uri = "$EndPoint/entity/auth/logout"
$response = Invoke-RestMethod $Uri -Method 'POST' -Headers $headers -WebSession $WebSession
return $response | ConvertTo-Json | ConvertFrom-Json
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment