
Net::FluidDB - A Perl interface to FluidDB

use Net::FluidDB; # predefined FluidDB client for playing around, points # to the sandbox with user test/test $fdb = Net::FluidDB->new_for_testing; $fdb = Net::FluidDB->new_for_testing(trace_http => 1); # FluidDB client pointing to production $fdb = Net::FluidDB->new(username => 'username', password => 'password'); # FluidDB taking credentials from environment variables # FLUIDDB_USERNAME and FLUIDDB_PASSWORD $fdb = Net::FluidDB->new;

Net::FluidDB provides an interface to the FluidDB API.
The documentation of Net::FluidDB does not explain FluidDB, though there are links to relevant pages in the documentation of each class.
If you want to get familiar with FluidDB please check these pages:

Returns an object for communicating with FluidDB.
This is a wrapper around LWP::UserAgent and does not validate credentials in the very constructor. If they are wrong requests will fail when performed.
Attributes and options are:
Your username in FluidDB. If not present uses the value of the environment variable FLUIDDB_USERNAME.
Your password in FluidDB. If not present uses the value of the environment variable FLUIDDB_PASSWORD.
Either 'HTTP' or 'HTTPS'. Defaults to 'HTTP'.
The FluidDB host. Defaults to fluiddb.fluidinfo.com.
A flag, logs all HTTP requests if true.
A flag, logs all HTTP responses if true.
A flag, logs all HTTP requests and responses if true. (Shorthand for enabling the two above.)
Returns a Net::FluidDB instance pointing to the sandbox with "test"/"test". The host of the sandbox can be checked in the package variable $Net::FluidDB::SANDBOX_HOST.

Gets/sets the username.
Gets/sets the password.
Gets/sets the protocol, either 'HTTP' or 'HTTPS'.
Returns the instance of LWP::UserAgent used to communicate with FluidDB.
Returns the user on behalf of whom fdb is doing calls. This attribute is lazy loaded.

Xavier Noria (FXN), <fxn@cpan.org>

Copyright (C) 2009 Xavier Noria
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.