Skip to content

Commit

Permalink
add missing passphrase (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekamilpro authored May 7, 2024
1 parent 665ad5e commit b29d429
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/public/URL/Get-PwpushUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b29d429

Please sign in to comment.