NAME

IO::EPP::HosterKZ

SYNOPSIS

use IO::EPP::HosterKZ;

# All queries are atomic, creating an object doesn't make sense
sub make_request {
    my ( $action, $params ) = @_;

    $params->{user} = 'login';
    $params->{pass} = 'xxxxx';

    # Parameters for LWP
    my %sock_params = (
        PeerHost        => 'https://billing.hoster.kz/api/',
        PeerPort        => 443,
        Timeout         => 30,
    );

    $params->{sock_params} = \%sock_params;

    return IO::EPP::HosterKZ::make_request( $action, $params );
}

# Check domain
my ( $answ, $msg ) = make_request( 'check_domains', { domains => [ 'hoster.kz' ] } );

DESCRIPTION

Work with reseller hoster.kz epp api

The module works via LWP

Features:

  • not the full epp protocol

  • works over https

  • there are no login and logout commands

  • no session

  • no epp header in request, but has in answer

  • need name in update_contact

  • not has epp poll

  • transfer without renew

  • many features at prolongation and autorenew

Documentation: https://hoster.kz/upload/api_hosterkz.pdf

METHODS

req

Completely replaces IO::EPP::Base::req because it works via LWP

create_domain

Since September 7, 2010, for Kazakhstan domains, you need to fill in data on the location of the server equipment on which the site is located, accessible by this domain name. The server equipment should be located on the territory of Kazakhstan.

server_loc -- hashref with parameters:

srvloc_state -- server location area or region; srvloc_city -- city; srvloc_street -- address in the city.

update_domain

See "create_domain" for server_loc parameters.

logout

For replace IO::EPP::Base::logout.

Do nothing.

AUTHORS

Vadim Likhota <vadiml@cpan.org>

COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.