functions/private/Get-ChurchUnitDetail.ps1
function Get-ChurchUnitDetail { param ( [psobject] $Session, [int] $UnitNumber ) $params = @{ Uri = (Get-ChurchConfig -Action "UnitDetail") -f $UnitNumber WebSession = $Session Method = "Get" ContentType = "application/json" } $response = Invoke-ChurchWebRequest @params return $response.Content; } |