You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[parameter(Mandatory=$true)][string]$message, # Message to be sent to client
[parameter(Mandatory=$false)][string]$title # optional title used by pushover notification
) # end parameters
$user = '[user token]'
$token = '[application token]'
$uri = 'https://api.pushover.net/1/messages.json' # Pushover API address
$parameters = @{ # Parameters to be sent to Pushover service for notification
token = $token
user = $user
title = $title
message = $message
}
$parameters | Invoke-RestMethod -Uri $uri -Method Post | Out-Null # Post rest method used to push $parameters to Pushover; Out-Null to remove all output