You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$responseData = Invoke-WebRequest -Uri $url -Method Get -Headers $headers -UseBasicParsing
return $responseData
}
// get tickets
$data = Get-Data -username user -password pass -url "https://XXX.jitbit.com/helpdesk/api/tickets"
$dataToDict = $data | ConvertFrom-Json
// Docs for Invoke-WebRequest are here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-6
// There you can learn how to send POST requests, add parameters, etc.