【发布时间】:2013-04-23 06:33:39
【问题描述】:
我是 yelp API 的新手。我正在使用版本 2。我确实注册了 API 访问并获得了 Consumer Key、Consumer Secret、token、token_secret,然后我使用了以下链接
http://api.yelp.com/v2/search?http://api.yelp.com/v2/search?term=food&location=San%2BFrancisco&oauth_consumer_key=SOMEKEY&oauth_consumer_secret=SOMESECRET&oauth_token=SOMETOKEN&oauth_token_secret=SOMESECRET
获取数据,但随后出现一系列 MISSING_PARAMETER 错误。对于 signature_method,我使用了 HMAC-SHA1,但对于其余部分(oauth_signature、oauth_nonce、oauth_timestamp),我不知道该放什么,所以我使用了一个空字段,但后来出现 "INVALID CREDENTIAL" 错误。我如何获得这些缺失的字段? 它们不在我的 API 访问页面中。
【问题讨论】:
-
我正在使用github.com/olalonde/node-yelp,但我仍然得到missing_parameter响应