This service serves as a proxy to Yelp's search API. It performs two functions:
The following example searches "food" in the location "San Francisco", and retrieves the display_phone of the first found business. The json path used is business.[0].display_phone. The path is specified by the query parameter 'field', and it must be URL encoded.
curl -H 'OAUTH-CONSUMER-KEY: yourKey' \
-H 'OAUTH-CONSUMER-SECRET: yourSecret' \
-H 'OAUTH-TOKEN: yourToken' \
-H 'OAUTH-TOKEN-SECRET: yourTokenSecret' \
'http://yelpproxy.appspot.com/v2/search?term=food&location=San+Francisco&limit=1&field=business.%5B0%5D.display_phone'
For SparkCore code, make sure you write the following headers when making a request
GET /v2/search?term=food&location=San+Francisco&limit=1 HTTP/1.1
Host: yelpproxy.appspot.com
Accept: */*
OAUTH-CONSUMER-KEY: Your Consumer Key
OAUTH-CONSUMER-SECRET: Your Consumer Secret
OAUTH-TOKEN: Your Token
OAUTH-TOKEN-SECRET: Your Token Secret