Daniel de Oliveira Mantovani > Yahoo-Answers > Yahoo::Answers

Download:
Yahoo-Answers-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Yahoo::Answers - The great new Yahoo::Answers!

VERSION ^

Version 0.01

SYNOPSIS ^

Quick summary of what the module does.

Perhaps a little code snippet.

    use Yahoo::Answers;
        use Data::Dumper;

    my $ya = Yahoo::Answers->new(
        query   => 'teste',
        results => 50,
        sort    => 'date_desc',
        appid =>
'9J_NabHV34Fuzb1qIdxpKfQdBmV6eaMGeva5NESfQ7IDCupidoKd_cSGK7MI5Xvl.eLeQKd9YkPOU0M4DsX73A--'
    );

    $ya->region_by_name('Brazil');
    my $struct = $ya->get_search;
    if ( $ya->has_error ) {
        die( Dumper $ya->error );
    }
    else {
        print Dumper $struct;
    }

region_by_name

With this, you can pass the country name, not the "us,uk" you can literary write the country name. The countrys are available here:

        United States
        United kingdom
        Canada
        Australia
        India
        Spain
        Brazil
        Argentina
        Mexico
        Italy
        Germany
        France
        Singapore

you can also search for only results in espanol with,

        En espanol

url_builder

Build the URL to do the "get" with all arguments that you pass for the attributes.

get_search

Make the search, and decode the JSON, if don't have the attribute "query", it return nothing.

check_error

If have any error with your search, it sets the attribute error, so you can see the error and check for errors.

request

Do the request, and return the content.

AUTHOR ^

Daniel de O. Mantovani, <daniel.oliveira.mantovani at gmail.com>

BUGS ^

Please report any bugs or feature requests to bug-yahoo-ansewers at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Yahoo-Answers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Yahoo::Answers

You can also look for information at:

ACKNOWLEDGEMENTS ^

Thiago Rondon

LICENSE AND COPYRIGHT ^

Copyright 2010 Aware (www.aware.com.br)

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: