WWW::Yahoo::InboundLinks - Tracking Inbound Links in Yahoo Site Explorer API
use WWW::Yahoo::InboundLinks; my $ylinks = WWW::Yahoo::InboundLinks->new ('YahooAppId'); my %params = { omit_inlinks => 'domain', }; print $ylinks->get ('http://yahoo.com', %params), "\n"; # or
The WWW::Yahoo::InboundLinks is a class implementing a interface for Tracking Inbound Links in Yahoo Site Explorer API.
WWW::Yahoo::InboundLinks
More information here: http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html
To use it, you should create WWW::Yahoo::InboundLinks object and use its method get(), to query inbound links for url.
It uses LWP::UserAgent for making request to Yahoo and JSON for parsing response.
LWP::UserAgent
JSON
This method constructs a new WWW::Yahoo::InboundLinks object and returns it. Required parameter — Yahoo Application Id (http://developer.yahoo.com/faq/index.html#appid)
This method returns constructed LWP::UserAgent object. You can configure object before making requests.
Queries Yahoo about inbound links for a specified url. Parameters similar to params on this http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html page. If Yahoo returns error, then returned value is undef.
In list context this function returns list from three elements where first one is a result as in scalar context, the second one is a HTTP::Response from LWP::UserAgent and third one is a perl hash with response data from Yahoo. This can be usefull for debugging purposes, for querying failure details and for detailed info from yahoo.
HTTP::Response
If you find any, please report ;)
Ivan Baktsheev <dot.and.thing@gmail.com>.
Copyright 2008, Ivan Baktsheev
You may use, modify, and distribute this package under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '—'. Assuming UTF-8
To install WWW::Yahoo::InboundLinks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Yahoo::InboundLinks
CPAN shell
perl -MCPAN -e shell install WWW::Yahoo::InboundLinks
For more information on module installation, please visit the detailed CPAN module installation guide.