我尝试从1周开始使用php,curl和api登录yelp,但我没有成功。我从我的代码中得到了以下输出:{"message": {"field": "signature", "text": "One or more parameters are missing in request", "code": 8, "version": "1.1.1", "request_id": "2a372375b650682c"}}
发布于 2018-09-05 00:29:55
首先,替换您的密码!
那么你应该看看这部分:
foreach($p as $oneKey=>$oneValue) {
$string .= urlencode($oneKey) . urlencode($oneValue);
}您需要像这样分隔字符串:
$string = ""
foreach($p as $oneKey=>$oneValue) {
$string .= ($string!="" ? "&" : "") .urlencode($oneKey) . "=" urlencode($oneValue);
}https://stackoverflow.com/questions/52170478
复制相似问题