NAME

WWW::Twitpic::Fetch - Moose-based information scraper/fetcher for Twitpic

VERSION

Version 0.01

SYNOPSIS

use WWW::Twitpic::Fetch;

my $twitpic = WWW::Twitpic::Fetch->new();
my $list = $twitpic->list($username, $page);
my $photoinfo = $twitpic->photo_info($list->[0]{id}, 0);
...

ATTRIBUTES

ua

LWP::UserAgent compatible UserAgent object. default is an instance of LWP::UserAgent.

username

username for twitter (and also twitpic). UNUSED for this version

password

password for twitter (and also twitpic). UNUSED for this version

FUNCTIONS

list(USERNAME [, PAGE])

get list of photo informations for USERNAME.

returns arrayref of hashref containing following keys 'id', 'message', 'thumb' when success. ('id' is for each photo, and 'thumb' is for url of thumbnail image of photo)

returns undef if failed to fetch list.

USERNAME (required)

specifies whose photo list.

PAGE

specifies page of list. can be omitted. (default = 1)

photo_info ID [, FULL?]

get informations of photo file.

returns following informations for scaled, 'url', 'message', 'comments', 'views'. and for full-size, 'url'.

return undef if failed to fetch.

ID (required)

photo id. you can get photo id by list() or public_timeline().

FULL?

FALSE for scaled photo. TRUE for full-size photo. (default = FALSE).

public_timeline

get information of photos on public_timeline

returns arrayref of hashref containing following. 'avatar', 'username', 'mini' and 'message' ('mini' means mini-thumbnail).

returns undef if failed to fetch

SEEALSO

http://twitpic.com/ - Twitpic web site

WWW::Twitpic - Diego Kuperman's Twitpic API client

AUTHOR

turugina, <turugina at cpan.org>

BUGS

Please report any bugs or feature requests to bug-www-twitpic-fetch at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Twitpic-Fetch. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WWW::Twitpic::Fetch

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009 turugina, all rights reserved.

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