有人可以帮助我解决此错误吗?
我的代码:
$method = new Finalize(Session::get($request['MD']), $request['PaRes']);
错误:
不允许的方法-您尝试使用无效的HTTP方法访问资源。响应数据:C:22:“ Cardinity \ Method \ Error”:174:{{“ type”:“ https://developers.cardinity.com/api/v1/#405”,“ title”:“不允许使用方法“,”状态“:405,”详细信息“:”此资源仅支持GET,POST,但您已发送PATCH。“}}
答案 0 :(得分:0)
请确保您的$ request ['MD']值不为空,因为使用PATCH / PUT请求时,您必须指定要更新的实体。