Net::HTTP::Factual - RESTful interface to Factual.com, using Spore
version 0.122480
my $api_key = "... get this from factual.com ..."; my $fact = Net::HTTP::Factual->new(); my $response = $fact->client->read( api_key => $api_key, table_id => 'EZ21ij', ); die unless $response->status == 200; my @json_decoded_data = $response->body->{response}{data};
Net::HTTP::Factual is currently a thin wrapper around Net::HTTP::Spore that provides the necessary json spec file. This interface should expand with use to provide helper functions around the three available REST verbs, read, input and schema.
DEPRECATED:
This module only supports factual API version 2. The v2 API has been deprecated by factual.
http://search.cpan.org/perldoc?Spore
http://search.cpan.org/perldoc?Net::HTTP::Spore
Andrew Grangaard <spazm@cpan.org>
This software is copyright (c) 2010 by Andrew Grangaard.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::HTTP::Factual, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::HTTP::Factual
CPAN shell
perl -MCPAN -e shell install Net::HTTP::Factual
For more information on module installation, please visit the detailed CPAN module installation guide.