Webservice::OVH::Email::Domain::Domain::Redirection
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $email_domain = $ovh->email->domain->domain('testdomain.de'); my $redirection = $email_domain->new_redirection(from => 'test@test.de', to => 'test2@test.de', local_copy => 'false');
Provides the ability to create, delete and change redirections for an email-domain.
Internal Method to create a Redirection object. This method should never be called directly.
Parameter: $api_wrapper - ovh api wrapper object, $module - root object, $domain - parent domain Objekt, $redirection_id => api intern id
Return: Webservice::OVH::Email::Domain::Domain::Redirection
Synopsis: Webservice::OVH::Email::Domain::Domain::Redirection->_new_existing($ovh_api_wrapper, $domain, $redirection_id, $module);
Internal Method to create the Redirection object. This method should never be called directly.
Parameter: $api_wrapper - ovh api wrapper object, $module - root object, $domain - parent domain, %params - key => value
Synopsis: Webservice::OVH::Email::Domain::Domain::Redirection->_new($ovh_api_wrapper, $domain, $module, from => 'from@test.com', to => 'to@test.com', local_copy => 'false');
When this redirection is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $redirection->is_valid;
Returns the api id.
Synopsis: my $id = $redirection->id;
Returns the email-domain this redirection is attached to.
Return: Webservice::Email::Domain::Domain
Synopsis: my $email_domain = $redirection->domain;
Returns the raw properties as a hash. This is the original return value of the web-api.
Return: HASH
Synopsis: my $properties = $record->properties;
Exposed property value.
Synopsis: my $from = $record->from;
Synopsis: my $to = $record->to;
Deletes the redirection api sided and sets this object invalid.
Synopsis: $redirection->delete;
Changes the redirection
Parameter: %params - key => value to
Synopsis: $redirection->change(to => 'test@test.de');
Get all associated tasks
Synopsis: $mailinglist->tasks;
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.