Toru Yamaguchi > WebService-Pathtraq-API-NormalizeURL-0.01 > WebService::Pathtraq::API::NormalizeURL

Download:
WebService-Pathtraq-API-NormalizeURL-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

WebService::Pathtraq::API::NormalizeURL - Normalize URL using Pathtraq API.

VERSION ^

version 0.01

SYNOPSIS ^

  use WebService::Pathtraq::API::NormalizeURL;

  my $url = "http://www.amazon.com/Bowflex-SelectTech-552-Dumbbell-Stand/dp/B000BH7CAI/ref=sr_1_2/104-2096515-2611145?ie=UTF8&s=sporting-goods&qid=1189760632&sr=1-2"; ### Very complex url.
  my $service = WebService::Pathtraq::API::NormalizeURL->new;
  if ($service->normalize($url)) {
    print $service->result; ### http://www.amazon.com/gp/product/B000BH7CAI
  }

DESCRIPTION ^

WHAT is Pathtraq?

Pathtraq(http://pathtraq.com/) is a service on which people share their accessed-URL histories. The result statistics includes what webpages are "hot" now. Pathtraq gathers access logs from joined panels and generates the statistics of popular/hot webpages, i.e. Alexa-like traffic info-system but more granular than domain but each page.

METHODS ^

new()

Constructor.

normalize($url)

Normalize URL usging API of http://pathtraq.com/. Return value is boolean which api request was suceeded.

After request succeed, get normalize url using result() method.

result()

Return latest normalized url.

text_dispatcher()

Dispatcher for text output.

SEE ALSO ^

WWW::REST
http://pathtraq.com/

AUTHOR ^

Toru Yamaguchi, <zigorou@cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-webservice-pathtraq-api-normalizeurl@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE ^

Copyright 2007 Toru Yamaguchi, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.