NAME
eBay::API::Simple::RSS
SYNPOSIS
my $call = ebay::API::Simple::RSS->new();
$call->execute(
'http://sfbay.craigslist.org/search/sss?query=shirt&format=rss'
);
if ( $call->has_error() ) {
die "Call Failed:" . $call->errors_as_string();
}
# getters for the response DOM or Hash
my $dom = $call->response_dom();
my $hash = $call->response_hash();
# collect all item nodes
my @items = $dom->getElementsByTagName('item');
foreach my $n ( @items ) {
print $n->findvalue('title/text()') . "\n";
}
new
Constructor for the RSS API call
my $call = ebay::API::Simple::RSS->new();
$call->execute(
'http://sfbay.craigslist.org/search/sss?query=shirt&format=rss'
);
execute( $feed_url )
Calling this method will make build and execute the api request.
$url = feed to fetch
$call->execute(
'http://sfbay.craigslist.org/search/sss?query=shirt&format=rss'
);
_get_request_body
This methods supplies an empty request body for the RSS API call
_get_request_headers
This methods supplies the headers for the RSS API call
_get_request_object
This method creates the request object and returns to the parent class
AUTHOR
Tim Keefer <tim@timkeefer.com>
COPYRIGHT
Tim Keefer 2009