GuzzleHTTP 响应 400 状态
GuzzleHTTP Response 400 Status
我一直在使用 GuzzleHttp,这是我的代码片段,这似乎以某种方式管理 GuzzleHTTP 中的会话。
$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"}
代码 2945 是无效票。
没有深入研究 API 文档,我怀疑它是 an authentication problem。
我一直在使用 GuzzleHttp,这是我的代码片段,这似乎以某种方式管理 GuzzleHTTP 中的会话。
$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"}
代码 2945 是无效票。
没有深入研究 API 文档,我怀疑它是 an authentication problem。