# Library Modules
use Labyrinth::Globals;
use Labyrinth::DBUtils;
use Labyrinth::Variables;
use JSON::XS;
use URI::Escape;
use WWW::Mechanize;
# -------------------------------------
# The Subs
=h
->new();
$mech->get($url);
if($mech->success()) {
my $json = $mech->content();
my $data = decode_json($json);
return $data;
}
return;
}
1;
__END__
=back
=h
=> 'application/javascript',
js => 'text/html',
json => 'application/json',
rss => 'application/xml',
txt => 'text/plain',