NAME

Net::HTTP::Factual - RESTful interface to Factual.com, using Spore

VERSION

version 0.122480

SYNOPSIS

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};

DESCRIPTION

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.

SEE ALSO

Spore

http://search.cpan.org/perldoc?Spore

Net::HTTP::Spore

http://search.cpan.org/perldoc?Net::HTTP::Spore

AUTHOR

Andrew Grangaard <spazm@cpan.org>

COPYRIGHT AND LICENSE

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.