Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thekamilpro committed Nov 1, 2022
1 parent 75b8878 commit 366c4ae
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/public/New-PwpushPush.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function New-PwpushPush {
function New-PwpushPush
{
[cmdletbinding()]
param (
[Parameter(Mandatory)]
Expand All @@ -21,19 +22,19 @@ function New-PwpushPush {

$body = @{
password = @{
"payload" = $Payload
"note" = $Note
"expire_after_days" = $ExpireAfterDays
"expire_after_views" = $ExpireAfterViews
"payload" = $Payload
"note" = $Note
"expire_after_days" = $ExpireAfterDays
"expire_after_views" = $ExpireAfterViews
"deletable_by_viewer" = $DeletableByViewer
"retrieval_step" = $RetrievalStep
"retrieval_step" = $RetrievalStep
}
} | ConvertTo-Json

$params = @{
Endpoint = $endpoint
Method = "Post"
Body = $body
Method = "Post"
Body = $body
}
Invoke-PwpushRequest @params
}

0 comments on commit 366c4ae

Please sign in to comment.