【发布时间】:2017-02-02 17:03:11
【问题描述】:
这是我的 curl 命令:
curl -X PUT -u 'adminaccount:teampassword' -H 'Content-Type: application/json' -H 'App-Key: appkey' -d 'paused=true' https://api.pingdom.com/api/2.0/checks/checkID
通过管理员帐户(存储我们支票的帐户)时,我收到以下错误:
{"error":{"statuscode":401,"statusdesc":"Unauthorized","errormessage":"Invalid email and/or password"}}
如果我更改传递给我的团队帐户的用户名(非管理员,本地没有检查),我会收到以下错误:
{"error":{"statuscode":403,"statusdesc":"Forbidden","errormessage":"Not permitted for account type."}}
这表明我需要包含多用户身份验证,但是我找不到任何说明如何通过 curl 命令执行此操作的文档。
任何帮助将不胜感激。
【问题讨论】: