NAME
WebService::Eulerian::Analytics::Website - access the Website service
DESCRIPTION
This module allow you to access the Website service holding information about the websites defined in your Eulerian Analytics account.
SYNOPSIS
use WebService::Eulerian::Analytics::Website;
#
my $api = new WebService::Eulerian::Analytics::Website(
apikey => 'THE KEY PROVIDED BY YOUR ACCOUNT MANAGER FOR API ACCESS',
host => 'THE HOST ON WHICH THE API IS HOSTED'
);
METHODS
getById : return a website given it's id
input
id of the website as defined in Eulerian Analytics
output
hash reference containing the attributes of the website
sample
my $rh_website = $api->getById(1);
#
if ( $api->fault ) {
die $api->faultstring();
}
#
foreach ( keys %{ $rh_website } ) {
print $_." => ".$rh_website->{$_}."\n";
}
getByName : return a website given it's name
input
name of the website as defined in Eulerian Analytics
output
hash reference containing the attributes of the website
sample
my $rh_website = $api->getByName('my-tracked-website');
#
if ( $api->fault ) {
die $api->faultstring();
}
#
foreach ( keys %{ $rh_website } ) {
print $_." => ".$rh_website->{$_}."\n";
}
getAll : return all the websites you are allowed to access with current apikey
input
none
output
array reference containg hash reference of the websites
sample
my $ra_website = $api->getAll();
#
if ( $api->fault ) {
die $api->faultstring();
}
#
foreach my $rh_website ( @{ $ra_website } ) {
foreach ( keys %{ $rh_website } ) {
print $_." => ".$rh_website->{$_}."\n";
}
print "\n";
}
SEE ALSO
WebService::Eulerian::Analytics
AUTHOR
Mathieu Jondet <mathieu@eulerian.com>
COPYRIGHT
Copyright (c) 2008 Eulerian Technologies Ltd http://www.eulerian.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA