WebService::Yelp::Category - Yelp.com API Category Class
use strict; use WebService::Yelp;
my $yelp = WebService::Yelp->new({ywsid => 'XXXXXXXXXXXX'}); my $biz_res = $yelp->search_review_hood({ term => 'cream puffs', location => 'San Francisco', }; for my $b (@{$biz_res->businesses()}) { for my $c (@{$b->categories()}) { my $href = qq[<a href="] . $c->search_url . qq[">] . $c->name . qq[<br>\n]; } }
A business has one or more categories associated with it. You can see Yelp's complete list at:
http://www.yelp.com/developers/documentation/category_list
Category display name.
Category search URL for yelp.com for the current location.
Category filter name.
To install WebService::Yelp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Yelp
CPAN shell
perl -MCPAN -e shell install WebService::Yelp
For more information on module installation, please visit the detailed CPAN module installation guide.