[英]Remote login on website using php, curl and api
I am trying from 1 week to login on yelp using php, curl and api, but i am not success.我试图从 1 周开始使用 php、curl 和 api 登录 yelp,但我没有成功。 I got this output from my code:
{"message": {"field": "signature", "text": "One or more parameters are missing in request", "code": 8, "version": "1.1.1", "request_id": "2a372375b650682c"}}
我从我的代码中得到了这个输出:
{"message": {"field": "signature", "text": "One or more parameters are missing in request", "code": 8, "version": "1.1.1", "request_id": "2a372375b650682c"}}
First of, replace your passwords !首先,更换您的密码!
then you should watch at this part :那么你应该注意这一部分:
foreach($p as $oneKey=>$oneValue) {
$string .= urlencode($oneKey) . urlencode($oneValue);
}
you need to seperate the strings like this :你需要像这样分开字符串:
$string = ""
foreach($p as $oneKey=>$oneValue) {
$string .= ($string!="" ? "&" : "") .urlencode($oneKey) . "=" urlencode($oneValue);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.