Subject: | Sound parameter not supported |
Date: | Fri, 12 Apr 2013 20:46:09 +0100 |
To: | bug-webservice-pushover [...] rt.cpan.org |
From: | Alec Edworthy <alec [...] edworthyuk.co.uk> |
Hello,
I have installed the latest version of WebService::Pushover (0.0.8)
and noticed that it does not support Pushover's sound parameter for
controlling what notification sound is used when the push message is
received. I have added the parameter to my install without validation
(see attached diff) but I guess it would be good to validate it
against Pushover's list of accepted sounds which is available through
a GET to https://api.pushover.net/1/sounds.json?token=(your app
token). I might try adding that validation to the module, and if I do
I'll send a new diff over, but it will probably take me a little while
to get my head around how to process the data returned from the GET
request and use it to validate what the user has requested in the
params hash from their script.
Just thought I'd flag it up.
Kind regards, Alec
--
Alec Edworthy
alec@edworthyuk.co.uk
Message body is not shown because sender requested not to inline it.