我在我的应用程序中使用 yelp V2 API。到目前为止,我从 yelp 得到了正确的响应(结果),但现在我使用相同的 API 密钥得到了低于相同请求的响应。我要求提供任何特定区域的餐厅和食物细节。
我的请求 :
http://api.yelp.com/v2/search?term=mcdonalds&location=la&category_filter=restaurants,food
大声回应:
error = {
description = "Invalid signature. Expected signature base string: GET&http%3A%2F%2Flocalhost%2Fv2%2Fsearch&category_filter%3Drestaurants%252Cfood%26location%3Dla%26oauth_consumer_key%3DQcDLfDCmeSlI**********%26oauth_nonce%3DAC37FDC4-11A1-40EA-AD66-B402E7D54EFD%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1317792252%26oauth_token%3DRYQ0HAfm0oQMqcASn5QDofj23ipsoH1-%26oauth_version%3D1.0%26term%3Dmcdonalds";
id = "INVALID_SIGNATURE";
text = "Signature was invalid";
};
我没有得到究竟是什么问题。所以请帮助我...
提前致谢。