NAME
WWW::DNSMadeEasy - Accessing DNSMadeEasy API
VERSION
version 0.001
SYNOPSIS
use WWW::DNSMadeEasy; # or WWW::DME as shortname
my $dme = WWW::DNSMadeEasy->new({
api_key => '1c1a3c91-4770-4ce7-96f4-54c0eb0e457a',
secret => 'c9b5625f-9834-4ff8-baba-4ed5f32cae55',
});
my $sandbox = WWW::DNSMadeEasy->new({
api_key => '1c1a3c91-4770-4ce7-96f4-54c0eb0e457a',
secret => 'c9b5625f-9834-4ff8-baba-4ed5f32cae55',
sandbox => 1,
});
my @domains = $dme->all_domains;
my $domain = $dme->create_domain('universe.org');
my $other_domain = $dme->domain('existingdomain.com');
my @records = $other_domain->all_records;
my $record = $domain->create_record({
ttl => 120,
gtdLocation => 'DEFAULT',
name => 'www',
data => '1.2.3.4',
type => 'A',
});
$record->delete;
$domain->delete;
DESCRIPTION
This distribution gives you an easy access to the DNSMadeEasy API. You require a business or corporate account to use this. You can't use it with the free test account neither with the small business account. This module doesnt check any input values, I suggest so far that you know what you do.
ATTRIBUTES
api_key
Here you must give the API key which you can obtain from this page https://cp.dnsmadeeasy.com/account/info.
secret
You get the secret from the same page where you get the API key.
sandbox
If set to true, this will activate the usage of the sandbox, instead of the live system.
http_agent_name
Here you can set a different http useragent for the requests, it defaults to the package name including the distribution version.
METHODS
$obj->create_domain
Arguments: $name
Return value: WWW::DNSMadeEasy::Domain
Will be creating the domain $name on your account and returns the WWW::DNSMadeEasy::Domain for this domain.
$obj->domain
Arguments: $name
Return value: WWW::DNSMadeEasy::Domain
Returns the WWW::DNSMadeEasy::Domain of the domain with name $name.
$obj->domain
Arguments: $name
Return value: WWW::DNSMadeEasy::Domain
Returns the WWW::DNSMadeEasy::Domain of the domain with name $name.
$obj->all_domains
Arguments: None
Return value: Array of WWW::DNSMadeEasy::Domain
Returns an array of WWW::DNSMadeEasy::Domain objects of all domains listed on this account.
ATTRIBUTES
METHODS
SUPPORT
IRC
Join #duckduckgo on irc.freenode.net and highlight Getty or /msg me.
Repository
http://github.com/Getty/p5-www-dnsmadeeasy
Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-www-dnsmadeeasy/issues
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Raudssus Social Software.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.