Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Example of /businesses/{id} for php #185

Closed
benrud opened this issue Mar 31, 2017 · 4 comments
Closed

Example of /businesses/{id} for php #185

benrud opened this issue Mar 31, 2017 · 4 comments

Comments

@benrud
Copy link

benrud commented Mar 31, 2017

Hello Everyone,

I'm a high school web design teacher and I'm trying to develop a project to teach my students how to use API's. This is my 1st attempt with them.

I'd like to learn how to request specific business information from yelp using the business endpoint (https://www.yelp.com/developers/documentation/v3/business) and echo specific data (rating and address) on the page using php. I've looked for examples online and asked on stackoverflow, but I haven't had any luck.

Would someone be willing to build a quick example of a .php file that requests data using /businesses/{id} and echoes some of the data?

My students and I thank you. Have a great weekend,
Todd

@mittonk
Copy link
Contributor

mittonk commented Mar 31, 2017

@benrud ,

We've got a separate Github area for the current Fusion (V3) API, check out

That example does the hard part of calling api.yelp.com/v3/businesses/BUSINESS_ID and printing the output --- have you done enough PHP to wire that into a simple hello-world webpage?

(This yelp-api area is for the older V2 API).

@benrud
Copy link
Author

benrud commented Mar 31, 2017

Hey Milton,

Thanks for the directions and sorry for posting in the wrong place. I'll post this question over there.

I've seen the https://github.com/Yelp/yelp-fusion/tree/master/fusion/php example and have it working here - http://foothillertech.com/student/webdesign/2016/02_benrud/tinker/data/ , but I'm trying to get a working example of the business endpoint (https://www.yelp.com/developers/documentation/v3/business) using php. I may be wrong, but I believe the example is over there is for the search endpoint (https://www.yelp.com/developers/documentation/v3/business_search).

Any chance you know of an example of the business endpoint working with php?

Thanks again and have a great weekend,
Todd

@mittonk
Copy link
Contributor

mittonk commented Mar 31, 2017

Great, let's continue over in Yelp/yelp-fusion#202 !

@benrud
Copy link
Author

benrud commented Mar 31, 2017

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants