NAME
WebService::Ustream::API::User - Perl interface to Ustream User API Service
SYNOPSIS
use WebService::Ustream::API::User;
$ust = WebService::Ustream::API::User->new;
my $ret = $ust->get('<DevKey>','koba206');
#<DevKey> is API key you receive when you register at http://developer.ustream.tv/apps/register
print $ret->{results}->{id};
print $ret->{results}->{registereAt};
print $ret->{results}->{gender};
print $ret->{results}->{url};
print $ret->{results}->{website};
print $ret->{results}->{about};
print $ret->{results}->{rating};
print $ret->{results}->{numberOf}->{comments};
print $ret->{results}->{numberOf}->{friends};
print $ret->{error}; #error code
print $ret->{msg}; #error message
DESCRIPTION
WebService::Ustream::API::User is a simple interface to Ustream's user information.
METHODS
- new
-
$ust = WebService::Ustream::API::User->new; $ust = WebService::Ustream::API::User->new(fetch=>{ Cache=>$c });
creates an instace of WebService::Ustream::API::User.
fetch
is option for URI::Fetch that used for fetching user information. - get(devkey, [username or userid])
-
my $ret = $ust->get('<devkey>','koba206'); my $ret = $ust->get('<devkey>','19185'); #19185 is koba206's userid
retrieve user information
SEE ALSO
URI::Fetch http://developer.ustream.tv/
AUTHOR
Takeshi Kobayashi, <koba206@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Takeshi Kobayashi
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 69:
'=item' outside of any '=over'
- Around line 87:
You forgot a '=back' before '=head1'