【发布时间】:2015-02-07 07:55:26
【问题描述】:
我正在使用Pushbullet's API 开发一个应用程序,但是在运行https://docs.pushbullet.com/v2/pushes/ 的示例代码时遇到了奇怪的错误。
我正在执行以下 cURL 命令(在 Windows 中):
curl -k -u <MY_API_KEY>: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "Note Title", "body": "Note Body"}'
...但它不断产生以下错误:
{"error": {"type":"invalid_request","message":"The param 'type' has an invalid value.","param":"type","cat":"\u003e:3"}}
它也会产生这个错误:
文档中其他端点的其他命令工作正常……就是这个。
有什么建议吗?谢谢您的帮助! :)
【问题讨论】:
标签: pushbullet