我正在开发一款应用程序,我必须展示配件,价格和价格。来自Yelp的其他信息
经过大量搜索后,我找到了一个有用的链接:https://github.com/Yelp/yelp-api/tree/master/v2/ios
但这种方法对我不起作用。
到目前为止,我只使用了一个正常运行的网络服务。其他人给出的错误就像缺少参数一样。
这是有效的:
http://api.yelp.com/business_review_search?term=mobile&ywsid=PyHVqegFdleV******&tl_lat=37.9&tl_long=-122.5&br_lat=37.788022&br_long=-122.399797
是否有另一个API调用,它会返回价格,优惠和价格。其他信息,因为上面的信息是为了审查。
答案 0 :(得分:0)
检查我的回答:How to search local business by name, location in iOS?
成功Venue阻止有关事件的信息
-(instancetype)initWithDict:(NSDictionary *)dict {
self = [super init];
if (self) {
self.name = [dict objectForKey:@"name"];
self.venueId = [dict objectForKey:@"id"];
self.thumbURL = [dict objectForKey:@"image_url"];
self.ratingURL = [dict objectForKey:@"rating_img_url"];
self.yelpURL = [dict objectForKey:@"url"];
self.venueId = [dict objectForKey:@"id"];
self.reviewsCount =[[dict objectForKey:@"review_count"] stringValue];
self.categories = [dict objectForKey:@"categories"][0][0];
self.distance = [dict objectForKey:@"distance"];
self.price = [dict objectForKey:@"deals.options.formatted_price"];
self.address = [[[dict objectForKey:@"location"] objectForKey:@"address"] componentsJoinedByString:@", "];
NSArray *adr = [[dict objectForKey:@"location"] objectForKey:@"display_address"];
self.displayAddress = [adr componentsJoinedByString:@","];
}
return self;
}