NAME

CIF::Client - Perl extension that extends REST::Client for use with the CI-Framework REST interface

SYNOPSIS

 use CIF::Client;
 my $client = CIF::Client->new({
   host        => $url,
   timeout     => 10,
   apikey      => $apikey,
   format      => $format,
 });

 $client->search($query,$format);
 die('request failed with code: '.$client->responseCode()) unless($client->responseCode == 200);

 my $text = $client->responseContent();

 my @lines = split(/\n/,$text);

 if($format eq 'json'){
   print $client->table($lines[2]);
 } else {
   foreach (@lines){
       print $_."\n"
   }
 }

DESCRIPTION

Simple extension of REST::Client for use with the CI-Framework REST based interface. Implements apikeys support and sample table output.

SEE ALSO

CIF::DBI, REST::Client, RT-CIF

http://code.google.com/p/collective-intelligence-framework/

Wes Young, <wes@barely3am.com>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Wes Young

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.