WebService::TagTheNet - Retrieve tags using the tagthe.net REST API
use WebService::TagTheNet; my $ttn = WebService::TagTheNet->new(count => 5); my $result = $ttn->url('http://tagthe.net/'); print "Tags: ", join ", ", @{$result->{'topic'}};
WebService::TagTheNet
The following methods can be used
new creates a new WebService::TagTheNet object.
new
If for some obscure reason you do not want to use the default http://tagthe.net/api/ URI, you can specify your own one here.
The agent string used for LWP::UserAgent. Defaults to 'WebService::TagTheNet v.'.$VERSION
'WebService::TagTheNet v.'.$VERSION
Define the amount of topics/tags you'd like to receive. Defaults to 10.
Accepts a scalar and will pass that on to tagthe.net for analysis. It returns a hashref with the results (or croaks if something goes wrong).
Accepts an URL and will pass that on to tagthe.net for analysis. It returns a hashref with the results (or croaks if something goes wrong).
The hash with API results may contain any of these fields:
Please see http://www.tagthe.net/fordevelopers for more information.
http://tagthe.net/, http://tagthe.net/fordevelopers
Please report any bugs to http://rt.cpan.org/Ticket/Create.html?Queue=WebService::TagTheNet.
M. Blom, <blom@cpan.org>, http://menno.b10m.net/perl/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install WebService::TagTheNet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::TagTheNet
CPAN shell
perl -MCPAN -e shell install WebService::TagTheNet
For more information on module installation, please visit the detailed CPAN module installation guide.