我一直在使用GuzzleHttp,这是我的代码片段,这似乎以某种方式管理GuzzleHTTP中的Session。
$this->httpMethod=='GET';
if(!empty($this->httpMethod) && $this->httpMethod=='POST'){
$response = $this->client->post($finalUrl);
}else{
$response = $this->client->request($this->httpMethod, $finalUrl);
}
不幸的是,我收到了致命错误 -
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET https://creator.zoho.com/api/json/test/view/All_SMS?zc_ownername=zc_owner&raw=1&authtoken=auth_token&scope=crmapi` resulted in a `400 Bad Request` response:
{"code":2945,"message":"DATATYPE_NOT_MATCHED"}
答案 0 :(得分:1)