Akado-Account
view release on metacpan or search on metacpan
Akado is the internet provider that works in Moscow, Russia.
http://www.akado.ru/
Every Akado customer has access to the site https://office.akado.ru/
where he can see his account info. This module creates Perl object that
gets account info from that site.
Unfortunately Akdado account site has no API, so this module acts as a
browser to get needed info.
Every module method dies in case of error.
METHODS
new
This a constuctor. It creates object. The constractor will not access
the account site. All network interaction is made in the methods that
return data.
my $aa = Akado::Account->new({
login => $login,
password => $password,
lib/Akado/Account.pm view on Meta::CPAN
);
return $domain
}
sub _check_response {
my ($self, $response) = @_;
my $url = scalar $response->request->uri->canonical;
if ($response->is_error) {
croak "Can't get url '$url'. Got error "
. $response->status_line;
}
return '';
}
1;
__END__
lib/Akado/Account.pm view on Meta::CPAN
Akado is the internet provider that works in Moscow, Russia.
L<http://www.akado.ru/>
Every Akado customer has access to the site L<https://office.akado.ru/> where
he can see his account info. This module creates Perl object that gets account
info from that site.
Unfortunately Akdado account site has no API, so this module acts as a browser
to get needed info.
Every module method dies in case of error.
=head1 DESCRIPTION
Akado::Account version numbers uses Semantic Versioning standart.
Please visit L<http://semver.org/> to find out all about this great thing.
=head1 METHODS
=head2 new
lib/Akado/Account.pm view on Meta::CPAN
new cookie.
=end comment
=begin comment _check_response
B<Get:> 1) $self 2) $cookies - HTTP::Response object
B<Return:> -
The method checks that there was no error in accessing some page. If there was
error, the die is performed.
=end comment
=head1 TODO
For now the object can return only several numbers, but the Akado site has
much more data in it. So it will be great if this module can get more details
about user account.
For now he module does not have tests. It was created interacting with the
( run in 0.358 second using v1.01-cache-2.11-cpan-65fba6d93b7 )