Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to use the Yelp v2 API with javascript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sharath  
View profile  
 More options Apr 25 2012, 5:29 am
From: Sharath <yesshar...@gmail.com>
Date: Wed, 25 Apr 2012 02:29:44 -0700 (PDT)
Local: Wed, Apr 25 2012 5:29 am
Subject: how to use the Yelp v2 API with javascript
Hi,

I would like to implement business api in my mobile application. and
for example i am searching for "Donuts" in Houston, Tx. And also i
have Consumer Key, Consumer Secret, Token and Token Secret values.
 Now i need to create a URL to fetch the JSOn data and then i can bind
the data to my page Look and feel.

Please help me.

http://api.yelp.com/v2/business/donuts-houston

Thanks,
Sharath Chandra


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prem  
View profile  
 More options Apr 25 2012, 8:27 am
From: Prem <prem.techmail...@gmail.com>
Date: Wed, 25 Apr 2012 05:27:53 -0700 (PDT)
Local: Wed, Apr 25 2012 8:27 am
Subject: Re: how to use the Yelp v2 API with javascript

Hi Sharath,

You can't make the business API search as you mentioned in your query.
There are two steps when you're using Yelp v2.0.

1. You need to search for restaurants for 'donuts' category by making use
of Search API (
http://www.yelp.com/developers/documentation/v2/search_api#searchNAC)
Probably your search API would look something like this,
http://api.yelp.com/v2/search?term=restaurants&category_filter=donuts
&location=houston

The above is not the full request URL, along with this you need to use
OAuth methods to sign your request with all the keys available for you.

When you make the proper request URL, Yelp would return you the results and
each result would have the business ID(yelpBizId) returned.

2. Now you need to make the second request which would be your Business API
(http://www.yelp.com/developers/documentation/v2/business)

Your business request URL would be looking something like this,
http://api.yelp.com/v2/business/<yelpBizId received as part of first search
request for a particular business(restaurant)>

The above is not the full request URL again, along with this you need to
use OAuth methods to sign your request with all the keys available for you.

Please find the attached 'index.html' for a sample implementation, but this
only contains the implementation for making the initial search request API.
You need to follow the same method to make the business API request after
you've got the search results.

Hope this would help you kick started with Yelp API usage.

Cheers,
Prem

  index.html
2K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Garrick Chin  
View profile  
 More options Apr 25 2012, 2:10 pm
From: Garrick Chin <garr...@yelp.com>
Date: Wed, 25 Apr 2012 11:10:24 -0700
Local: Wed, Apr 25 2012 2:10 pm
Subject: Re: how to use the Yelp v2 API with javascript

Hi Sharath,

There is a javascript example in our github examples repo, as linked by:
http://www.yelp.com/developers/documentation/v2/overview
Please refer to our documentation (linked above) for the APIv2 "Search API"
section.

Prem, appreciate your help in pointing him in the right direction - thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sharath  
View profile  
 More options Apr 26 2012, 4:36 am
From: Sharath <yesshar...@gmail.com>
Date: Thu, 26 Apr 2012 01:36:49 -0700 (PDT)
Local: Thurs, Apr 26 2012 4:36 am
Subject: Re: how to use the Yelp v2 API with javascript

Hi Prem,

Thanks for the information. Implemented the Business API with the help of
oauth.js and sha1.js and  Consumer Key, Consumer Secret, Token and Token
Secret values.
Do you have any sample code without using the above mentioned .js files?
Once again Thanks Prem.

Thanks,
Sharath Chandra.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prem  
View profile  
 More options Apr 27 2012, 7:53 am
From: Prem <prem.techmail...@gmail.com>
Date: Fri, 27 Apr 2012 04:53:24 -0700 (PDT)
Local: Fri, Apr 27 2012 7:53 am
Subject: Re: how to use the Yelp v2 API with javascript

Hi Sharath,

Without using above mentioned oauth.js and sha1.js files you can't make
yelp v2 search requests. Those JS files would be used to resolve the OAuth
signing methods to sign your request. There is no escape from that. Those
are the key files that you need to use anyways to do the OAuth signing of
your request with Yelp.

Thanks,
Prem


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sharath  
View profile  
 More options May 10 2012, 6:16 am
From: Sharath <yesshar...@gmail.com>
Date: Thu, 10 May 2012 03:16:33 -0700 (PDT)
Local: Thurs, May 10 2012 6:16 am
Subject: Re: how to use the Yelp v2 API with javascript

Hi Prem,

Since today morning, the yelp business api is not working. Is there any
changes? Please let me know.
It was worked yesterday night.

Thanks,
Sharath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rockinus  
View profile  
 More options Oct 23 2012, 4:42 am
From: Rockinus <superbarm...@gmail.com>
Date: Tue, 23 Oct 2012 01:42:30 -0700 (PDT)
Local: Tues, Oct 23 2012 4:42 am
Subject: Re: how to use the Yelp v2 API with javascript

Hello everyone,

I'm a freshman for Yelp API, currently doing a NLP project by using Yelp
API. I go with Yelp API for PHP.
As mentioned, I copied the sample code((with generated key replaced in the
code for sure) to my local machine, and uploaded to PHP web server.
When I executed this PHP program, it generated a github page which appears
very weird to me... Below is the generated PHP url page.
http://03531d0.netsolhost.com/NLP.php
I am not sure what is wrong, since I was expecting it should output the
result list of "tacos" in "sf".
Please guide me, thanks in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Garrick Chin  
View profile  
 More options Oct 23 2012, 2:39 pm
From: Garrick Chin <garr...@yelp.com>
Date: Tue, 23 Oct 2012 11:39:50 -0700
Local: Tues, Oct 23 2012 2:39 pm
Subject: Re: how to use the Yelp v2 API with javascript

Do not hijack existing threads, please create a new one.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »