Net::Google::Response

Net::Google::Response is a simple OOP-ish interface to the Google SOAP API search responses.
Download

Net::Google::Response Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Aaron Straup Cope
  • Publisher web site:
  • http://search.cpan.org/~ascope/Net-Flickr-Geo-0.72/lib/Net/Flickr/Geo/ModestMaps.pm

Net::Google::Response Tags


Net::Google::Response Description

Net::Google::Response is a simple OOP-ish interface to the Google SOAP API search responses. Net::Google::Response is a simple OOP-ish interface to the Google SOAP API search responses.SYNOPSIS my $service = Net::Google->new(key=>LOCAL_GOOGLE_KEY); my $session = $service->search(); $session->query(qw(Perl modules)); # You are probably better off calling # $session->results() but if you want # the raw response object(s) here ya go : my $responses = $session->response(); my $count = scalar(@$responses); # $r is a Net::Google::Response object foreach my $r (@$responses) { print sprintf("%s : %sn",$r->searchQuery(),$r->estimatedTotalResults()); }Provides a simple OOP-ish interface to the Google SOAP API for searching. This package is used by Net::Google.The Net::Google::Response object is used to contain response information provided by the Google search service in response to a search query. The Response object allows the client program to easily access the data returned from a search.Response data is accessed using methods with identical names to the elements of a search response (as documented in the Google Web APIs Reference, section 3). For instance, the first example in the SYNOPSIS section, above, would return the estimated number of total results for the query.Response objects may contain other response objects, where an element would return an array of other elements. For instance, calling $response->resultElements() will return a reference to an array of Net::Google::Response objects, each one representing one result from the search.The Response module will automatically provide methods for the search response, as described by the service WSDL file. The results format is described by the Google APIs documentation, to which you should refer for the most up-to-date information. As of the April 8th, 2002 release of the Google APIs, the methods below are provided for each search result. Requirements: · Perl


Net::Google::Response Related Software