Hunter McMillen > Net-Easypost > Net::Easypost::Request

Download:
Net-Easypost-0.13.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.13   Source  

NAME ^

Net::Easypost::Request

VERSION ^

version 0.13

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.

syntax highlighting: