markus-perl / pushover-cli

pushover-cli is a command line client for https://pushover.net to send pushover notifications. Moreover it is possible with this client to pipe streams directly to your cellphone like tail -f /var/log/my.log | pushover-cli -
50 stars 11 forks source link

Highest priority doesn't work #17

Open fedxyz opened 1 year ago

fedxyz commented 1 year ago

Hi,

the highest priority level doesn't work, it gives me Bad Request.

Trying with curl to send a notification with highest priority it seems that using this level requires an expire value too, here is the response that I get from curl:

{
  "expire": "must be supplied with priority=2",
  "errors": [
    "expire must be supplied with priority=2"
  ],
  "status": 0,
  "request": <some uuid>
}

From pushover api:

To send an emergency-priority notification, the priority parameter must be set to 2 and the retry and expire parameters must be supplied.

Thanks for the help.