WWW::DaftarNama::Reseller - Reseller API client for DaftarNama.id
This document describes version 0.002 of WWW::DaftarNama::Reseller (from Perl distribution WWW-DaftarNama-Reseller), released on 2018-12-17.
use WWW::DaftarNama::Reseller qw( get_dns # ... ); my $res = get_dns( # to get these credentials, first sign up as a reseller at https://daftarnama.id username => '...', password => '...', idkey => '...', domain => 'shopee.co.id', );
DaftarNama.id, https://daftarnama.id, is an Indonesian TLD (.id) registrar. This module provides interface to the reseller API.
Usage:
check_availability(%args) -> [status, msg, payload, meta]
Check the availability of a domain.
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
domain* => domain::name
idkey* => str
password* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (payload) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
delete_ns(%args) -> [status, msg, payload, meta]
Delete a nameserver.
ns* => net::hostname
get_contact(%args) -> [status, msg, payload, meta]
Get contact information for a domain.
get_epp(%args) -> [status, msg, payload, meta]
Get EPP Code for a domain.
get_lock_status(%args) -> [status, msg, payload, meta]
Get lock status for a domain.
get_ns(%args) -> [status, msg, payload, meta]
Get nameservers for a domain.
get_registrar(%args) -> [status, msg, payload, meta]
Get registrar of a domain.
register(%args) -> [status, msg, payload, meta]
Register a domain.
address* => str
city* => str
company* => str
country* => str
email* => str
firstname* => str
lastname* => str
ns1* => net::hostname
ns2* => net::hostname
ns3* => net::hostname
ns4* => net::hostname
periode => int
phone* => str
state* => str
zip* => str
register_ns(%args) -> [status, msg, payload, meta]
Register a nameserver.
ip* => net::ipv4
renew(%args) -> [status, msg, payload, meta]
Renew a domain.
eppCode* => str
transfer(%args) -> [status, msg, payload, meta]
Transfer a domain.
update_contact(%args) -> [status, msg, payload, meta]
Update contact information for a domain.
contacttype* => str
update_lock_status(%args) -> [status, msg, payload, meta]
Update lock status for a domain.
statusKey* => str
update_ns(%args) -> [status, msg, payload, meta]
Update nameservers for a domain.
Please visit the project's homepage at https://metacpan.org/release/WWW-DaftarNama-Reseller.
Source repository is at https://github.com/perlancar/perl-WWW-DaftarNama-Reseller.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=WWW-DaftarNama-Reseller
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::DaftarNama::Reseller, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::DaftarNama::Reseller
CPAN shell
perl -MCPAN -e shell install WWW::DaftarNama::Reseller
For more information on module installation, please visit the detailed CPAN module installation guide.