WWW::Ohloh::API::Factoid - A factoid about an Ohloh project
use WWW::Ohloh::API; my $ohloh = WWW::Ohloh::API->new( api_key => $my_api_key ); my @factoids = $ohloh->get_factoids( $project_id ); print join "\n", map { $_->type } @factoids;
W::O::A::Factoid is a bit of information about a project.
$id = $factoid->id;
Return the id of the factoid. Note that the ids change every time that a project is reanalyzed.
$id = $factoid->analysis_id;
Return the id of the analysis used to create the factoid.
$type = $factoid->type;
Return the factoid type.
$desc = $factoid->description;
Return a description of the factoid type.
$sev = $factoid->severity;
Return the factoid's severity (ranges between -3 and +3).
$license_id = $factoid->license_id;
If the factoid's type is FactoidGplConflict, return the id of the conflicting license.
Return the activity fact information as an XML string. Note that this is not the exact xml document as returned by the Ohloh server.
WWW::Ohloh::API.
Ohloh API reference: http://www.ohloh.net/api/getting_started
Ohloh Account API reference: http://www.ohloh.net/api/reference/activity_fact
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 activity fact 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.