【问题标题】:Converting Curl into a Zapier将 Curl 转换为 Zapier
【发布时间】:2021-03-27 13:47:24
【问题描述】:

尝试将其转换为 Zapier 上的 POST 请求:

curl https://api.synthesia.io/v1/videos  \
  -H "Authorization: ${API_KEY}" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{ "title": "Hello, World!", "description": "This is my first synthetic video, made with the Synthesia API!", "visibility": "public", "test": true, "input": [{ "script": "This is my first synthetic video, made with the Synthesia API!", "actor": "anna_costume1_cameraA", "background": "off_white", "soundtrack": "inspirational", "actorSettings": { "horizontalAlign": "center", "scale": 0.9 } } ] }

这是我在 Zap 中加载的内容。收到 500 错误。

https://i.stack.imgur.com/I7dp4.png

【问题讨论】:

    标签: curl post zapier


    【解决方案1】:

    POST 操作不允许使用原始 json 负载。为此,您需要使用“自定义请求”操作 (https://cdn.zappy.app/fb00eb81f4ad813c381cde60bfe49964.png)。

    然后您可以选择 POST 方法并将原始 json 负载用于Data。所有其他字段都与您的相同。

    https://cdn.zappy.app/b194bc30cf6dea1464a572c592890436.png

    【讨论】:

      猜你喜欢
      • 2018-11-20
      • 2019-11-04
      • 2017-06-05
      • 2016-01-08
      • 2018-03-28
      • 2019-11-12
      • 2016-05-20
      • 2018-05-23
      • 1970-01-01
      相关资源
      最近更新 更多