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

NAME

Net::Easypost::Request

VERSION

version 0.23

SYNOPSIS

Net::Easypost::Request->new

NAME

Net::Easypost::Request

ATTRIBUTES

user_agent

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

endpoint

The Easypost service endpoint. Defaults to 'https://api.easypost.com/v2'

METHODS

_build_url

Given an operation, constructs a valid Easypost URL using the specified EASYPOST_API_KEY

post

This method uses the user_agent 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 user_agent 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>, Hunter McMillen <mcmillhj@gmail.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.