API-Handle
view release on metacpan or search on metacpan
lib/API/Handle/Google/DFP.pm view on Meta::CPAN
}
};
my $xml = $self->_xml->write( $data );
$req->content( $xml );
$req->headers->header( 'Content-Type' => 'text/xml; charset=utf-8' );
# Uncomment this to view generated SOAP xml/envelope.
# $self->debug( $xml );
}
}
, m_scheme => $scheme
, m_host => $host
, m_path_match => qr/^\Q$path\E/
);
# Add response wrapper.
$self->ua->add_handler(
response_done => sub {
my ( $res, $ua, $h ) = @_;
if ( my $data = $res->content ) {
$data = $self->_xml->parse( $data );
$data = delete $data->{ 'soap:Envelope' }{ 'soap:Body' };
$self->_decamelize( $data );
$res->content( $data );
}
}
, m_scheme => $scheme
, m_host => $host
, m_path_match => qr/^\Q$path\E/
, m_code => 200
, m_media_type => 'text/xml'
);
return $prev;
};
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=head1 NAME
API::Handle::Google::DFP
=head1 VERSION
version 0.02
=head1 AUTHOR
Nour Sharabash <amirite@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Nour Sharabash.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 0.583 second using v1.01-cache-2.11-cpan-bbcb1afb8fc )