The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Easypost::Request - Request role for Net::Easypost

VERSION

version 0.09

ATTRIBUTES

ua

A user agent attribute. Defaults to Mojo::UserAgent.

endpoint

The Easypost service endpoint. Defaults to 'https://www.geteasypost.com/api'

METHODS

post

This method uses the ua attribute to generate a form post request. It takes an endpoint URI fragment and the parameters to be sent. It returns JSON deserialized into Perl structures.

get

This method uses the ua attribute to generate a GET request to an endpoint. It takes a complete endpoint URI as its input and returns a Mojo::Message::Response object.

AUTHOR

Mark Allen <mrallen1@yahoo.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Mark Allen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.