NAME
Net::Icecast2 - Icecast2 Server API
SYNOPSIS
use Net::Icecast2;
my $net_icecast = new Net::Icecast2(
host => 192.168.1.10,
port => 8008,
protocol => 'https',
login => 'source',
password => 'hackme',
);
# Make request to "/admin/stats"
$net_icecast->request( '/stats' );
DESCRIPTION
Make requsts and parse XML response from Icecast2 API
ATTRIBUTES
host
Description : Icecast2 Server hostname
Default : localhost
Required : 0
port
Description : Icecast2 Server port
Default : 8000
Required : 0
protocol
Description : Icecast2 Server protocol ( scheme )
Default : http
Required : 0
login
Description : Icecast2 Server API login
Required : 1
password
Description : Icecast2 Server API password
Required : 1
METHODS
request
Usage : $net_icecast->request( '/stats' );
Arguments : Path to API action that goes after '/admin'
Description : Method for making request to Icecast2 Server API
Return : Parsed XML server request
SEE ALSO
Icecast2 server: http://www.icecast.org Icecast2 API Docs: http://www.icecast.org/docs/icecast-trunk/icecast2_admin.html
Related modules Net::Icecast2::Admin Net::Icecast2::Mount
AUTHOR
Pavel R3VoLuT1OneR Zhytomirsky <r3volut1oner@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Pavel R3VoLuT1OneR Zhytomirsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.