![如何从命令行使用 delicious API](https://linux22.com/image/1306565/%E5%A6%82%E4%BD%95%E4%BB%8E%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%BD%BF%E7%94%A8%20delicious%20API.png)
我正在尝试从 shell 脚本添加 delicious 书签,但一直收到神秘的“出现问题”错误。我检查了官方规格和几个例子一切看起来都正常。有什么想法吗?
wget --no-check-certificate --http-user=MYUSERNAME --http-passwd=MYPASSWORD https://api.del.icio.us/v1/posts/add?url=http%3A%2F%2Fwebmonkey.com%2F&description=The%20Internets%20Best%20Singles%20Hangout
也尝试过
wget --no-check-certificate https://MYUSERNAME:[email protected]/v1/posts/add?url=http%3A%2F%2Fwebmonkey.com%2F&description=The%20Internets%20Best%20Singles%20Hangout
答案1
使用 curl 可以进行以下操作:
curl "https://MYUSERNAME:[email protected]/v1/posts/add?&url=http%3A%2F%2Fwebmonkey.com%2F&description=xxx&tags=test&replace=no"
通过这篇文章找到解决方案。但是,仍然无法使 wget 工作。