【发布时间】:2016-09-17 01:18:21
【问题描述】:
我正在尝试通过“运行 Shell 脚本”在 Automator 中发送带有参数的 curl 命令,但没有运气。我正在使用 /bin/bash 并将信息作为参数传递。这是我的脚本,但不断从 IFTTT 获得Bad Request。我知道这与没有正确使用参数有关(如果我只是输入 "value1":"test" 它工作正常),我应该如何格式化 $1?
for f
do
curl -X POST -H "Content-Type: application/json" -d '{"value1":$1}' https://maker.ifttt.com/trigger/Automator/with/key/heremykey
done
谢谢!
【问题讨论】:
标签: bash shell curl automator ifttt