POC(Proof Of Concept) - rakeshr99/radhakrishnan-rakeshkrishna-webdev GitHub Wiki

Yelp Fusion API

Created an app with Yelp fusion API and received the credentials and access token.

API request and response using Postman

request to receive access token from yelp providing the key and secret

POST : https://api.yelp.com/oauth2/token

GET : https://api.yelp.com/v3/businesses/search?term=uhop&location=boston

response: { "businesses": [ { "id": "university-house-of-pizza-boston", "name": "University House of Pizza", "image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/cd6LTa1utSSpc8YuQ_6mRQ/o.jpg", "is_closed": false, "url": "https://www.yelp.com/biz/university-house-of-pizza-boston?adjust_creative=IxPjAaoDsjXWxu7uiGZ_Rw&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=IxPjAaoDsjXWxu7uiGZ_Rw", "review_count": 96, "categories": [ { "alias": "pizza", "title": "Pizza" }, { "alias": "greek", "title": "Greek" }, { "alias": "salad", "title": "Salad" } ], "rating": 3, "coordinates": { "latitude": 42.33856, "longitude": -71.09282 }, "transactions": [ "delivery", "pickup" ], "price": "$", "location": { "address1": "452 Huntington Ave", "address2": "", "address3": "", "city": "Boston", "zip_code": "02115", "country": "US", "state": "MA", "display_address": [ "452 Huntington Ave", "Boston, MA 02115" ] }, "phone": "+16174429280", "display_phone": "(617) 442-9280", "distance": 2059.914322764 } ] }

Test Proof of Concept

1)log in to : https://radhakrishnan-rakesh-project.herokuapp.com/

2)click on Proof of Concept(POC) link

3)Navigates user to search page

4)clicking on search will give you list of all restaurants and then clicking on a particular restaurant it navigates user to the details page which displays the details of the restaurant as json object