|
NAMEREST::Google - access Google REST (aka AJAX) API from PerlSYNOPSISuse REST::Google; # set service to use REST::Google->service('http://ajax.googleapis.com/ajax/services/search/web'); # provide a valid http referer REST::Google->http_referer('http://example.com'); my $res = REST::Google->new( q => 'Larry Wall', ); die "response status failure" if $res->responseStatus != 200; my $data = $res->responseData; use Data::Dumper; print Dumper( $data ); DESCRIPTION"REST::Google" provides OO interface to Google REST (aka AJAX) API.Note that this module provides low-level access to Google services API. Consider using REST::Google::Search, REST::Google::Translate or REST::Google::Feeds, which provide convenient access to service request results. METHODS
DEPENDENCIES"REST::Google" uses JSON::Any for decoding Google AJAX Search API response and LWP for search request sending.SEE ALSOREST::Google::Search, REST::Google::Translate, REST::Google::Feeds child classes for Search, Translate and Feeds services correspondingly.<http://github.com/esobchenko/rest-google/> - this project on github; <http://code.google.com/apis/ajaxsearch/documentation/#fonje> - brief information about Google Search AJAX API in non-Javascript environments; <http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje> - Google Search AJAX API documentation; <http://code.google.com/apis/ajaxlanguage/documentation/#fonje> - Google Translate AJAX API documentation; <http://code.google.com/apis/ajaxfeeds/documentation/#fonje> - Google Feeds AJAX API documentation; LICENSE AND COPYRIGHTCopyright 2008, Eugen Sobchenko <ejs@cpan.org> and Sergey Sinkovskiy <glorybox@cpan.org>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |