$credentials = @{ "username" = "x" "password" = "x" "url" = "x" } function Get-FreshService { param ( $User, $Endpoint, $Method, $Body ) $base64AuthInfo = ::ToBase64String(::ASCII.GetBytes(("{0}:{1}" -f $User.username, $User.password))) $Params…
$credentials = @{ "username" = "x" "password" = "x" "url" = "x" } function Get-FreshService { param ( $User, $Endpoint, $Method, $Body ) $base64AuthInfo = ::ToBase64String(::ASCII.GetBytes(("{0}:{1}" -f $User.username, $User.password))) $Params…