Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CIF::Client(3)	      User Contributed Perl Documentation	CIF::Client(3)

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     => 60,
	   apikey      => $apikey,
	 });

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

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

	 print $client->table($text) ||	die('no	records')

COMMAND-LINE
	 $> cif	-h
	 $> cif	-q example.com
	 $> cif	-q domain -p bindzone
	 $> cif	-q 192.168.1.0/24
	 $> cif	-q infrastructure/network -p snort
	 $> cif	-q url -s low |	grep -v	private

CONFIG FILE
       Your config should be stored in ~/.cif (default)

	 [client]
	 host =	https://example.com:443/api
	 apikey	= xx-xx-xx-xx-xx
	 timeout = 60
	 #severity = medium

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

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

       Wes Young, <wes@barely3am.com>

COPYRIGHT AND LICENSE
       Copyright (C) 2010 by REN-ISAC and The Trustees of Indiana University
       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.

perl v5.32.1			  2013-02-05			CIF::Client(3)

NAME | SYNOPSIS | COMMAND-LINE | CONFIG FILE | DESCRIPTION | SEE ALSO | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=CIF::Client&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help