![]() |
![]()
| ![]() |
![]()
NAMENet::Amazon::Response - Baseclass for responses from Amazon's web service SYNOPSIS$resp = $ua->request($request); if($resp->is_success()) { print $resp->as_string(); } if($resp->is_error()) { print $resp->message(); } if($resp->is_success()) { for my $property ($resp->properties) { print $property->as_string(), "\n"; } } DESCRIPTION"Net::Amazon::Response" is the baseclass for responses coming back from the useragent's "request" method. Responses are typically not of type "Net::Amazon::Response" but one of its subclasses "Net::Amazon::Response::*". However, for basic error handling and dumping content, "Net::Amazon::Response"'s methods are typically used, because we typically don't know what type of object we're actually dealing with. METHODS
AUTHORMike Schilli, <m@perlmeister.com> COPYRIGHT AND LICENSECopyright 2003 by Mike Schilli <m@perlmeister.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|