IO-EPP
view release on metacpan or search on metacpan
lib/IO/EPP/RRPProxy.pm view on Meta::CPAN
package IO::EPP::RRPProxy;
=encoding utf8
=head1 NAME
IO::EPP::RRPProxy
=head1 SYNOPSIS
use IO::EPP::RRPProxy;
# Parameters for IO::Socket::SSL
my %sock_params = (
PeerHost => 'epp.rrpproxy.net',
PeerPort => 700,
Timeout => 30,
);
# Create object, get greeting and call login()
my $conn = IO::EPP::RRPProxy->new( {
user => 'login',
pass => 'xxxxx',
sock_params => \%sock_params,
test_mode => 0, # real connect
} );
# Check domain
my ( $answ, $code, $msg ) = $conn->check_domains( { domains => [ 'info.name', 'name.info' ] } );
# Call logout() and destroy object
undef $conn;
=head1 DESCRIPTION
Work with RRPProxy EPP API
Features:
=over 3
item *
has its own epp extension <keysys:*> for specifying additional parameters;
=item *
has additional functions.
=back
Examples: L<https://wiki.rrpproxy.net/EPP>, L<https://wiki.rrpproxy.net/api/epp-server/epp-command-reference>.
=cut
use IO::EPP::Base;
use parent qw( IO::EPP::Base );
use strict;
use warnings;
my $ks_ext = 'xmlns:keysys="http://www.key-systems.net/epp/keysys-1.0"';
sub make_request {
my ( $action, $params ) = @_;
my ( $self, $code, $msg, $answ );
unless ( $params->{conn} ) {
$params->{sock_params}{PeerHost} ||= 'epp.rrpproxy.net';
$params->{sock_params}{PeerPort} ||= 700;
( $self, $code, $msg ) = __PACKAGE__->new( $params );
( run in 2.531 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )