"Invalid config" 通过 curl POST 请求设置 Kik 机器人时
"Invalid config" while setting up Kik bot through curl POST request
我确定我只是在这里遗漏了一些愚蠢的东西,但是有人可以帮助发现我在这里滥用 curl 来设置 Kik 吗?
curl -H "Content-Type: application/json" -d '{"webhook": "http://example.com/kik", "features": {"manuallySendReadReceipts": False, "receiveReadReceipts": False, "receiveDeliveryReceipts": False, "receiveIsTyping": False}}' -u 'username:apikey' 'https://api.kik.com/v1/config'
我收到这样的回复:
{"message":"Invalid config","error":"BadRequest"}
true/false in JSON 是小写
我确定我只是在这里遗漏了一些愚蠢的东西,但是有人可以帮助发现我在这里滥用 curl 来设置 Kik 吗?
curl -H "Content-Type: application/json" -d '{"webhook": "http://example.com/kik", "features": {"manuallySendReadReceipts": False, "receiveReadReceipts": False, "receiveDeliveryReceipts": False, "receiveIsTyping": False}}' -u 'username:apikey' 'https://api.kik.com/v1/config'
我收到这样的回复:
{"message":"Invalid config","error":"BadRequest"}
true/false in JSON 是小写