WWW::eNom::Role::Command - Basic Logic for Submission of Requests to eNom
use WWW::eNom; my $eNom = WWW::eNom->new( ... ); my $response = $eNom->submit({ method => 'Check', params => { DomainList => 'drzigman.com, drzigman.net, enom.biz', } });
response_type
Primary interface to eNom API that is used by the rest of the WWW::eNom::Role::Command::* roles. The only reason a consumer would use the submit method directly would be if there was no corresponding Command for the needed operation.
The submit method is what sends requests over to eNom. It accepts a raw method and an HashRef of params. For details on the structure of the params please see WWW::eNom::Role::Command::Raw.
The submit method returns a HashRef that represents the data returned by eNom. There is logic built into submit such that requests are always made with an xml_simple response_type which is what drives the creation of the HashRef to form the response.
To install WWW::eNom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::eNom
CPAN shell
perl -MCPAN -e shell install WWW::eNom
For more information on module installation, please visit the detailed CPAN module installation guide.