diff --git a/src/public/Get-PwpushPush.ps1 b/src/public/Get-PwpushPush.ps1 new file mode 100644 index 0000000..e4c240b --- /dev/null +++ b/src/public/Get-PwpushPush.ps1 @@ -0,0 +1,16 @@ +function Get-Pwpush +{ + [cmdletbinding()] + param ( + [Parameter(Mandatory)] + [string]$UrlToken + ) + + $endpoint = "p/$($UrlToken).json" + + $params = @{ + Endpoint = $endpoint + Method = "Get" + } + Invoke-PwpushRequest @params +} \ No newline at end of file diff --git a/src/public/Get-PwpushPushPreview.ps1 b/src/public/Get-PwpushPushPreview.ps1 new file mode 100644 index 0000000..848fbff --- /dev/null +++ b/src/public/Get-PwpushPushPreview.ps1 @@ -0,0 +1,16 @@ +function Get-PwpushPreview +{ + [cmdletbinding()] + param ( + [Parameter(Mandatory)] + [string]$UrlToken + ) + + $endpoint = "p/$($UrlToken)/preview.json" + + $params = @{ + Endpoint = $endpoint + Method = "Get" + } + Invoke-PwpushRequest @params +} \ No newline at end of file diff --git a/src/public/New-PwpushPush.ps1 b/src/public/New-PwpushPush.ps1 index 375e738..b45d2d8 100644 --- a/src/public/New-PwpushPush.ps1 +++ b/src/public/New-PwpushPush.ps1 @@ -1,4 +1,4 @@ -function New-PwpushPush +function New-Pwpush { [cmdletbinding()] param ( diff --git a/src/public/Remove-PwpushPush.ps1 b/src/public/Remove-PwpushPush.ps1 index 4eb4055..e2f9de6 100644 --- a/src/public/Remove-PwpushPush.ps1 +++ b/src/public/Remove-PwpushPush.ps1 @@ -1,4 +1,4 @@ -function Remove-PwpushPush +function Remove-Pwpush { [cmdletbinding()] param (