Subject: | Unable to locate push method |
Date: | Tue, 16 Apr 2013 07:34:09 +0100 |
To: | bug-webservice-pushover [...] rt.cpan.org |
From: | Alec Edworthy <alec [...] edworthyuk.co.uk> |
Hi,
Sorry, I just realised that my previous email didn't go to the bugs address
but to you personally. As such I've re-sent it below.
Since the 0.1.0 upgrade you mentioned in your previous message I can't send
push notifications anymore,
***
alec@aeserv:~/tmp$ ./test.pl
Can't locate object method "push" via package "WebService::Pushover" at ./
test.pl line 15.
alec@aeserv:~/tmp$ cat test.pl
#!/usr/bin/perl -w
use WebService::Pushover;
my $push = WebService::Pushover->new(debug => 1)
or die( "Unable to instantiate WebService::Pushover.\n" );
my %params = (
token => 'xxx',
user => 'xxx',
title => '',
sound => 'none',
);
my $status = $push->push( %params, message => 'Perl modules rock!' );
foreach my $key (keys %{$status}) {
print "\$status->{$key} = " . $status->{$key} . "\n";
}
alec@aeserv:~/tmp$
***
Am I doing something wrong?
Thanks, Alec
--
Alec Edworthy
alec@edworthyuk.co.uk <javascript:_e({}, 'cvml', 'alec@edworthyuk.co.uk');>
--
Alec Edworthy
alec@edworthyuk.co.uk