【发布时间】:2019-12-12 15:35:12
【问题描述】:
有人知道使用 Guzzle 进行 PUT 的正确方法吗?我的代码不起作用
但我的帖子方法有效
$enrolment = $client->request('PUT', $url,[
'form_params' => [
'contactID' =>12345,
'type' =>'w'
],
'headers' => [
'apitoken' => $api_token,
'wstoken' => $ws_token
]
]);
导致
500 Internal Server Error响应:↵{"DATA":"","ERROR":true,"MESSAGES":"key [TYPE] 不存在","CODE":"0","详情":""}
【问题讨论】:
标签: php laravel api guzzle guzzle6