API-BigBlueButton
view release on metacpan or search on metacpan
lib/API/BigBlueButton/Response.pm view on Meta::CPAN
$res
HTTP::Response object.
=cut
sub new {
my ( $class, $res ) = @_;
my $success = $res->is_success;
my $xml = $success ? $res->decoded_content : '';
my $error = $success ? '' : $res->decoded_content;
my $status = $res->status_line;
my $parsed_response = $xml ? xml2hash( $xml, attr => '' ) : {};
return bless(
{
success => $success,
xml => $xml,
error => $error,
response => $parsed_response->{response} ? $parsed_response->{response} : $parsed_response,
( run in 0.679 second using v1.01-cache-2.11-cpan-26ccb49234f )