NAME

YellowBot::API - The great new YellowBot::API!

SYNOPSIS

use YellowBot::API;

my $yp = YellowBot::API->new
   (api_key    => $api_key,
    api_secret => $api_secret,
   );

# if you are in Canada...
# $yp->server('http://www.weblocal.ca/');

my $data = $api->call('location/details',
                      id           => '/solfo-burbank-ca.html'
                      api_version  => 1,
                      get_pictures => 10,
                     );
print $data->{name}, "\n";
for my $p ( @{ $data->{pictures} } ) {
   print $p->{url}, "\n";
}

METHODS

call( $endpoint, %args )

Calls the endpoint (see the YellowBot API documentation) with the specified arguments. Returns a hash data structure with the API results.

DEBUGGING

If the API_DEBUG environment variable is set to a true value (1 for example) the request query and the response will be printed to STDERR.

AUTHOR

Ask Bjørn Hansen, <ask at develooper.com>

BUGS

Please report any bugs or feature requests to bug-yellowbot-api at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YellowBot-API. 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 YellowBot::API

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2009-2010 Solfo, Inc, all rights reserved.

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

1 POD Error

The following errors were encountered while parsing the POD:

Around line 114:

Non-ASCII character seen before =encoding in 'Bjørn'. Assuming UTF-8