The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::Easypost::Request

VERSION

version 0.14

ATTRIBUTES

ua

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

endpoint

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

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.

_build_url

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

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>, 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.