Net::TribalWarsMap::API::HTTP - HTTP User Agent For TribalWarsMap.com
TribalWarsMap.com
version 0.1.1
This module is mostly a common shared component for a bunch of TribalWarsMap.com API Modules.
API
Its just a huge glue layer gluing together
WWW::Mechanize::Cached
HTTP::Tiny::Mech
CHI
Path::Tiny
File::Spec
In order to produce
A Cached HTTP User Agent
With a shared cache in /tmp/perl-Net-TribalWarsMap-API.cache/
/tmp/perl-Net-TribalWarsMap-API.cache/
With a per instance key set for /tmp/perl-Net-TribalWarsMap-API.cache/*
/tmp/perl-Net-TribalWarsMap-API.cache/*
Usage:
use Net::TribalWarsMap::API::HTTP; my $ua = Net::TribalWarsMap::API::HTTP->new( # /tmp/perl-Net-TribalWarsMap-API.cache/foo cache_name => 'foo' );
get
my $result = $ua->get( $url );
See HTTP::Tiny and HTTP::Tiny::Mech for details
HTTP::Tiny
tmp_root
tw_suffix
tw_root
cache_name
chi
agent
mech
ht_tiny
Kent Fredric <kentfredric@gmail.com>
This software is copyright (c) 2013 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::TribalWarsMap::API::HTTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::TribalWarsMap::API::HTTP
CPAN shell
perl -MCPAN -e shell install Net::TribalWarsMap::API::HTTP
For more information on module installation, please visit the detailed CPAN module installation guide.