The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Yandex::Suggest - Yandex Suggest as an API

SYNOPSIS

  use WebService::Yandex::Suggest;

  my $suggest = WebService::Yandex::Suggest->new();
  my @suggestions = $suggest->complete("ÿíäå");
  for my $suggestion (@suggestions) {
      print "$suggestion\n";
  }

DESCRIPTION

WebService::Yandex::Suggest is simple pure-perl implementation which allows you to use Yandex Suggest as a Web Service API to retrieve completions to your search query or partial query.

METHODS

new
  $suggest = WebService::Yandex::Suggest->new();

Creates new WebService::Yandex::Suggest object.

complete
  @suggestions = $suggest->complete($query);

Sends your $query to Yandex web server and fetches suggestions for the query. Suggestions are in a list

ua
  $ua = $suggest->ua;

Returns underlying LWP::UserAgent object. It allows you to change User-Agent (Windows IE by default), timeout seconds and various properties.

AUTHOR

Oleg Nikitin <olegn@stratek.ru>, module initially based on Tatsuhiko Miyagawa's <miyagawa@bulknews.net> WebService::Google::Suggest

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This module gives you NO WARRANTY.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 75:

Non-ASCII character seen before =encoding in '$suggest->complete("ÿíäå");'. Assuming CP1252