Webservice::OVH::Email::Domain
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; }
Provides access to email domain objects.
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);
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");
Produces an array of all available email-domains that are connected to the used account.
Return: ARRAY
Synopsis: my $domains = $ovh->email->domain->domains();
Returns a single email-domains by name
Parameter: $domain - domain name
Return: Webservice::OVH::Email::Domains::Domain
Synopsis: my $email_domain = $ovh->email->domain->domain("mydomain.com");
To install Webservice::OVH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::OVH
CPAN shell
perl -MCPAN -e shell install Webservice::OVH
For more information on module installation, please visit the detailed CPAN module installation guide.