diff --git a/src/public/URL/Get-PwpushUrl.ps1 b/src/public/URL/Get-PwpushUrl.ps1 index 501c54d..9735f3f 100644 --- a/src/public/URL/Get-PwpushUrl.ps1 +++ b/src/public/URL/Get-PwpushUrl.ps1 @@ -16,11 +16,18 @@ [cmdletbinding()] param ( [Parameter(Mandatory)] - [string]$UrlToken + [string]$UrlToken, + + [string]$Passphrase ) $endpoint = "r/$($UrlToken).json" + if ($PSBoundParameters.ContainsKey('Passphrase')) + { + $endpoint += "?passphrase=$Passphrase" + } + $params = @{ Endpoint = $endpoint Method = "Get"