|
NAMEREST::Google::Translate - OO interface to Google Translate (aka Languages) API SYNOPSIS use REST::Google::Translate;
REST::Google::Translate->http_referer('http://example.com');
my $res = REST::Google::Translate->new(
q => 'hello world',
langpair => 'en|it'
);
die "response status failure" if $res->responseStatus != 200;
my $translated = $res->responseData->translatedText;
printf "Italian translation: %s\n", $translated;
DESCRIPTION"REST::Google::Translate" provides OO interface to Google REST (aka AJAX) API for languages translation. METHODS
SEE ALSOREST::Google - the base class for this module; <http://code.google.com/apis/ajaxlanguage/documentation/#fonje> - Google Translate 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.
|