access to the REG.API v2 provided by REG.RU LLC. This is a JSON-driven implementation.
Input/output request data will transforms from/to JSON transparently.
=head2 Rate limiting
Rate limiting in ver
izer;
# ABSTRACT: something that can (de)serialize
use strict;
use warnings;
use Moo::Role;
use JSON;
use Carp;
use namespace::autoclean;
our $VERSION = '0.053'; # VERSION
our $AUTHORITY = 'cpan:OL
=> (
is => 'rw',
isa => sub {
croak "$_[0] is not a JSON instance" unless ref($_[0]) =~ m/JSON/;
croak "$_[0] can not decode" unless $_[0]->can('decode'
not encode" unless $_[0]->can('encode');
},
lazy => 1,
default => sub { JSON->new->utf8 },
);
1; # End of Regru::API::Role::Serializer
__END__
=pod
=encoding UTF-8
=hea
lf->username,
password => $self->password,
output_format => 'json',
input_format => 'json',
);
$post_params{lang} = $self->lang if $self->has_
if $self->debug;
my $json = $self->serializer->encode( \%params );
my $response = $self->useragent->post(
$url,
[ %post_params, input_data => $json ]
);
return Regr