Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Google/Yelp API question

I have a client who is interested in increasing his google plus and yelp reviews. Good or bad reviews, doesn't matter, he just wants to acquire more reviews for his business.

Is it possible to have a link on the site direct the user fill out a review on either of the sites and upon completion redirect them back to the site with a confirmation code?

I am willing to do the work to make it happen, just don't know if something like this is possible or against their T&C. Haven't been able to find anything and don't know what this type of functionality is called to search.


1 Answer

Hmm.. would a user have to log into these review sites in order to post something?

Yep, of course. Unless they were already logged in on their mobiles or that specific machine.

I think for this, you'll need to use some kind of O-auth.

Like when you share something on twitter or facebook from another site, you might get a popup saying 'give permissions to company x - they will be allowed to post on your timeline and view your friends' etc....

So you'll need to plug into the google api from your site, firstly to authenticate the user and secondly to complete whatever action you want them to do. This might be asking for permission to post or providing a way to leave a review.

Having said all that, you can only do as much as yelp / google let you do. Sometimes they're funny about postings things (I think you have to request special access from Google).

Have you read through the developer docs on yelp? That will be the best place to go for instructions and what you can/can't do.

Have a poke around and see if that answers your question. If you need help with implementing it, just post again :-)

Hope this helps!