NSYelpApi
Native implementation of the Official Native YelpApi Implementation
(Optional) Prerequisites / Requirements
A YelpApi api key is required. Sign up at https://www.yelp.com/developers
Installation
tns plugin add NSYelpApi
Usage
General Setup
; public message: string; private api: NSYelpApi; { super; thisapi = YOUR_API_KEY; thisapi ; const coordinates = latitude: 41313822 longitude: -7291276; thisapi ; }
Getting A Business With an Id
{ thisapi ; }
Getting A Business By Phone
{ thisapi ; }
Getting reviews by business ID
{ thisapi ; }
Example Response of Reviews
const reviews = reviews: message: "I just love Modern Apizza. Every couple of weeks I crave for modern and go back there to have a custom made pizza. The combo I like a lot and would..." rating: 5 timeCreate: "2019-03-09T22:36:58.000Z" user: "Akshay A." total: 1
Example Reponse of Business
const business = id: "jfqLSA2Ic9gC9BpahJLbTA" name: "Frank Pepe Pizzeria Napoletana" closed: false website: "https://www.yelp.com/biz/frank-pepe-pizzeria-napoletana-new-haven?adjust_creative=Jx7qaHGmn1sKws49NEEdHA&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=Jx7qaHGmn1sKws49NEEdHA" categories: alias: "pizza" name: "Pizza" alias: "italian" name: "Italian" alias: "wine_bars" name: "Wine Bars" location: address: "157 Wooster St" city: "New Haven" coordinates: latitude: 41302918 longitude: -72916899 countryCode: "US" postalCode: "06511" stateCode: "CT" rating: 4 imageUrl: "https://s3-media1.fl.yelpcdn.com/bphoto/eHWOn8Ew9iE4TfrYcHv9tg/o.jpg" reviewCount: 2
License
Apache License Version 2.0, January 2004