Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $client = Regru::API->new(
- username => 'login',
- password => 'pass',
- );
- my %params = (
- 'domains' => @domains
- );
- my $resp = $client->domain->check(%params);
- if ($resp->is_success) {
- # Обрабатываем ответ
- } else {
- say "Request error: " . $resp->error_text . " (Code: " . $resp->error_code . ")";
- }
- Error: service failed: cant connect to api.reg.ru:443
- Bad address at LWP/Protocol/http.pm line 47, <$wf> line 1.
- At regru/api/response.pm line 75.
- Request error: API response error (Code: API_FAIL)
Add Comment
Please, Sign In to add comment