NAME
Webservice::OVH::Email::Domain
SYNOPSIS
use Webservice::OVH;
my $ovh = Webservice::OVH->new_from_json("credentials.json");
my $email_domains = $ovh->email->domain->domains;
foreach $email_domain (@$email_domains) {
$email_domain->name;
}
DESCRIPTION
Provides access to email domain objects.
METHODS
_new
Internal Method to create the domain object. This method is not ment to be called external.
Parameter: $api_wrapper - ovh api wrapper object, $module - root object
Return: Webservice::OVH::Email::Domain
Synopsis: Webservice::OVH::Email::Domain->_new($ovh_api_wrapper, $zone_name, $module);
domain_exists
Returns 1 if email-domain is available for the connected account, 0 if not.
Parameter: $domain - (required)Domain name, $no_recheck - (optional)only for internal usage
Return: VALUE
Synopsis: print "mydomain.com exists" if $ovh->email->domain->domain_exists("mydomain.com");
domains
Produces an array of all available email-domains that are connected to the used account.
Return: ARRAY
Synopsis: my $domains = $ovh->email->domain->domains();
domain
Returns a single email-domains by name
Parameter: $domain - domain name
Synopsis: my $email_domain = $ovh->email->domain->domain("mydomain.com");