Pcore-API-Moz
view release on metacpan or search on metacpan
lib/Pcore/API/Moz.pm view on Meta::CPAN
return;
}
if ( !$self->{has_valid_accounts} ) {
$cb->( res [ 600, q[No moz accounts] ] );
return;
}
if ( !$self->{valid_accounts}->@* || !$self->{valid_accounts}->[0]->is_ready ) {
$cb->( res [ 601, q[API is busy] ] );
return;
}
my $acc = shift $self->{valid_accounts}->@*;
$acc->get_url_metrics(
$domains, $metric,
sub($res) {
if ( !$res ) {
( run in 0.519 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )