WWW::Ohloh::API::Account - an Ohloh account
use WWW::Ohloh::API; my $ohloh = WWW::Ohloh::API->new( api_key => $my_api_key ); my $account $ohloh->get_account( id => 12933 ); print $account->name;
W::O::A::Account contains the information associated with an Ohloh account as defined at http://www.ohloh.net/api/reference/account. To be properly populated, it must be created via the get_account method of a WWW::Ohloh::API object.
get_account
Return the account's id.
Return the public name of the account.
Return the time at which the account was created.
Return the last time at which the account was modified.
Return the URL to a member's home page, such as a blog, or undef if not configured.
Return the URL to the profile image displayed on Ohloh pages, or undef if not configured.
Return the number of posts made to the Ohloh forums by this account.
Return a text description of this account holder's claimed location, or undef if not available.
Return a string representing the account holder's country, or undef is unavailable.
Return floating-point values representing the account's latitude and longitude, suitable for use with the Google Maps API, or undef is they are not available.
Return a WWW::Ohloh::API::KudoScore object holding the account's kudo information, or undef if the account doesn't have a kudo score yet. All three methods are equivalent.
Return the stack associated with the account as a WWW::Ohloh::API::Stack object.
If the optional $retrieve argument is given and false, the stack will not be queried from the Ohloh server and, if the information has not been retrieved previously, the method will return nothing.
Return the account information (including the kudo score if it applies) as an XML string. Note that this is not the exact xml document as returned by the Ohloh server.
When the object is called in a string context, it'll be replaced by the name associated with the account. E.g.,
print $account; # equivalent to 'print $account->name'
WWW::Ohloh::API, WWW::Ohloh::API::KudoScore.
Ohloh API reference: http://www.ohloh.net/api/getting_started
Ohloh Account API reference: http://www.ohloh.net/api/reference/account
This document describes WWW::Ohloh::API version 0.3.2
WWW::Ohloh::API is very extremely alpha quality. It'll improve, but till then: Caveat emptor.
The as_xml() method returns a re-encoding of the account data, which can differ of the original xml document sent by the Ohloh server.
as_xml()
Please report any bugs or feature requests to bug-www-ohloh-api@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-www-ohloh-api@rt.cpan.org
Yanick Champoux <yanick@cpan.org>
<yanick@cpan.org>
Copyright (c) 2008, Yanick Champoux <yanick@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install WWW::Ohloh::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Ohloh::API
CPAN shell
perl -MCPAN -e shell install WWW::Ohloh::API
For more information on module installation, please visit the detailed CPAN module installation guide.