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.
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 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: due to the current XML parsing module used by W::O::A (to wit: XML::Simple), the ordering of the nodes can differ.
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.
as_xml() method returns a re-encoding of the account data, which can differ of the original xml document sent by the Ohloh server.
Please report any bugs or feature requests to
email@example.com, or through the web interface at http://rt.cpan.org.
Copyright (c) 2008, Yanick Champoux
<firstname.lastname@example.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.