| WebService-Yelp documentation | Contained in the WebService-Yelp distribution. |
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.
| WebService-Yelp documentation | Contained in the WebService-Yelp distribution. |
package WebService::Yelp::Category; use strict; use warnings; use base qw/Class::Accessor/; __PACKAGE__->mk_ro_accessors(qw/search_url name category_filter/);
1;