account_sample.pl - Simple example of using the Ohloh API from Perl
account_sample.pl api_key email
This is a small example of how to use the Ohloh API from Perl, mimicking the Ruby example given at http://www.ohloh.net/api/examples.
Detailed information about the Ohloh API can be found at http://www.ohloh.net/api.
The script takes an API key and the email address of a developer registered on Ohloh as parameters, and prints out all the information of that account.
./account_sample.pl YOUR_API_KEY_HERE robin@ohloh.net
This script uses LWP::Simple (to query the Ohloh website), Digest::MD5 (to MD5s the email address as requested by the API) and XML::Simple (to parse the server's answer).
This documentation refers to account_sample version 0.1
Yanick Champoux (yanick@cpan.org)
Copyright (c) 2007 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 perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
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.