Subject: | request: get_price() |
Date: | Wed, 13 Apr 2016 15:43:48 +0000 |
To: | "bug-Net-OpenSRS [...] rt.cpan.org" <bug-Net-OpenSRS [...] rt.cpan.org> |
From: | Brad Tarratt <btarratt [...] clearrate.com> |
=item get_price()
my $results = $srs->get_price( 'example.com' );
Fetch and return price of domain.
=cut
sub get_price
{
my ($self, $domain) = @_;
$rv = $srs->make_request(
{
action => 'get_price',
object => 'domain',
attributes => {
domain => $dom->{'name'},
type => 'all_info',
}
}
);
return undef unless $rv;
return undef unless $rv->{'success'};
$self->_set_response;
return $rv->{attributes}->{price};
}