YellowBot::API - The great new YellowBot::API!
use YellowBot::API; my $api = YellowBot::API->new (api_key => $api_key, api_secret => $api_secret, ); # if you are in Canada... # $api->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"; } my $signin_url = $api->signin_url( domain => 'reputation.example.com', api_user_identifier => 'abc123', brand => 'yellowbot', );
Calls the endpoint (see the YellowBot API documentation) with the specified arguments. Returns a hash data structure with the API results.
Generate a URL for the "silent partner login" feature. See example above and API documentation for details.
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.
See also the ybapi utility, ybapi.
Ask Bjørn Hansen, <ask at develooper.com>
<ask at develooper.com>
Please report any bugs or feature requests to the issue tracker at http://github.com/solfo/YellowBot-API-perl/issues.
The Git repository is available at http://github.com/solfo/YellowBot-API-perl (Clone with git clone http://github.com/solfo/YellowBot-API-perl.git).
git clone http://github.com/solfo/YellowBot-API-perl.git
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.
To install YellowBot::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YellowBot::API
CPAN shell
perl -MCPAN -e shell install YellowBot::API
For more information on module installation, please visit the detailed CPAN module installation guide.