Net::Google::Cache - simple OOP-ish interface to the Google SOAP API for cached documents
use Net::Google::Cache; my $cache = Net::Google::Cache(\%args);
$cache->url("http://aaronland.net); print $cache->get();
Provides a simple OOP-ish interface to the Google SOAP API for cached documents.
This package is used by Net::Google.
new(\%args)
Valid arguments are :
string. A Google API key.
If none is provided then the key passed to the parent Net::Google object will be used.
urlstring.
http_proxyurl.
Get/set the URL for proxy-ing HTTP request.
Returns a string.
debugValid options are:
If true prints debugging information returned by SOAP::Lite to STDERR
coderef.Your own subroutine for munging the debugging information returned by SOAP::Lite.
The object constructor in Net::Google 0.53, and earlier, expected a GoogleSearchService object as its first argument followed by a hash reference of argument. Versions 0.6 and higher are backwards compatible.
Returns an object. Woot!
key($string)
Get/set the Google API key for this object.
http_proxy($url)
Get/set the HTTP proxy for this object.
Returns a string.
url($url)
Set the cached URL to fetch from the Google servers.
Returns a string. Returns an undef if there was an error.
get()
Fetch the requested URL from the Google servers.
Returns a string. Returns undef if there was an error.
0.2
$Date: 2003/04/17 13:25:47 $
Aaron Straup Cope
Copyright (c) 2002-2003, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.