26 Jun 2012 23:02:20 UTC
- Distribution: WWW-Ohloh-API
- Module version: v0.3.2
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- KwaliteeBus factor: 1
- 92.86% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (90.39KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionYANICK Yanick Champoux
- SEE ALSO
- BUGS AND LIMITATIONS
- LICENCE AND COPYRIGHT
WWW::Ohloh::API::KudoScore - an Ohloh kudo score
use WWW::Ohloh::API; my $ohloh = WWW::Ohloh::API->new( api_key => $my_api_key ); my $account $ohloh->get_account( id => 12933 ); my $kudo = $account->kudo_score; print $kudo->rank;
W::O::A::KudoScore contains the kudo information associated with an Ohloh account as defined at http://www.ohloh.net/api/reference/kudo_score. To be properly populated, it must be retrieved via the
kudo_scoremethod of a WWW::Ohloh::API::Account object.
Return the time at which this KudoScore was calculated.
Return the KudoRank, which is an integer from 1 to 10.
Return an integer which orders all participants. The person with `position` equals 1 is the highest-ranked person on Ohloh.
Return the total number of partcipants in the most recent KudoScore calculations. The person whose `position` equals `max_position` is the lowest-ranked person on Ohloh.
Return the change in this person's position since the previous kudo score calculations. Here, a negative number represents an improvement, since lower positions are better.
Return the kudo information 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.
Ohloh API reference: http://www.ohloh.net/api/getting_started
Ohloh Account API reference: http://www.ohloh.net/api/reference/kudo_score
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
firstname.lastname@example.org, or through the web interface at http://rt.cpan.org.
Copyright (c) 2008, Yanick Champoux
<email@example.com>. 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.
Module Install Instructions
To install WWW::Ohloh::API, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install WWW::Ohloh::API
For more information on module installation, please visit the detailed CPAN module installation guide.