NAME

Net::Google::Analytics::Feed - Google Analytics API feed

DESCRIPTION

This is a base class for the feeds of the Google Analytics Data Export API. Account feeds are implemented in Net::Google::Analytics::AccountFeed. Data feeds are implemented in Net::Google::Analytics::DataFeed.

See http://code.google.com/apis/analytics/docs/gdata/gdataReference.html.

METHODS

new_request

my $req = $feed->new_request();

Creates and returns a new Net::Google::Analytics::FeedRequest object for this feed.

uri

my $uri = $feed->uri($req);

Returns the URI of the feed. $req is a Net::Google::Analytics::FeedRequest object. This method returns a URI object.

retrieve

my $res = $feed->retrieve($req);

Retrieves data from the feed. $req is a Net::Google::Analytics::FeedRequest object. You should use a request object returned from the "new_request" method. This method returns a Net::Google::Analytics::FeedResponse object.

retrieve_xml

my $res = $feed->retrieve_xml($req);

Retrieves the raw XML data as string from the feed. $req is a Net::Google::Analytics::FeedRequest object.

retrieve_paged

my $res = $feed->retrieve_paged($req);

Works like retrieve but works around the per-request entry limit. This method concatenates the results of multiple requests if necessary.

AUTHOR

Nick Wellnhofer <wellnhofer@aevum.de>

COPYRIGHT AND LICENSE

Copyright (C) Nick Wellnhofer, 2010

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