Yelp / yelp-api

Examples of code using our v2 API
http://yelp.com/developers
MIT License
580 stars 1.09k forks source link

Yelp API returns a missing parameter error #183

Closed rahuls2704 closed 7 years ago

rahuls2704 commented 7 years ago

I try to retrieve some information from Yelp API for a UWP app. As they say here, I need to pass some parameter as header for a HTTP request, and then perform a Json request using this link. I know how to parse a Json file once I get it, but I have no idea how to get access to this file.

If for example I put https://api.yelp.com/v2/search?term=food&location=San+Francisco&oauth_signature_method=HMAC-SHA1&oauth_signature=nirEvIvOl7d2L6PD9jvx9jKvTPQ&oauth_timestamp=1483452024&oauth_nonce=5 this link on my browser

it return {"error": {"text": "One or more parameters are missing in request", "id": "MISSING_PARAMETER", "field": "oauth_consumer_key"}}

How should I enter this oauth_consumer_key?

mittonk commented 7 years ago

@rahuls2704 : Looks like you're trying the older V2 API; for new development, I'd suggest the newer Fusion (V3) API instead:

The OAuth configuration in Fusion is much simpler and easier to use.

rahuls1 commented 7 years ago

Thanks...