转换Curl命令以在Zapier Webhook中运行 [英] Converting a Curl command to run in a Zapier Webhook

查看:106
本文介绍了转换Curl命令以在Zapier Webhook中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Zapier上的Webhook Zap中找到一种方法来运行此 curl 命令,但似乎无法弄清楚。我如何在Webhook中输入此信息?最好将其作为 Code Zap运行吗?

I'm trying to find a way to run this curl command in the Webhook Zap on Zapier, but I can't seem to figure it out. How would I enter this in the Webhook? Would it be better to run it as a Code Zap?

curl -X POST "https://api.zoom.us/v2/users?access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmY3FvTHlyRVRpR3VmWmw2dW1ZU2NBIiwiaWF0IjoxNTI4Njc0OTUxLCJleHAiOjE1Mjg2OTI5NTF9.fvDzS8-UtHyO_YUF5-eqLyuopAuoL48SRwKxcOV1YrE" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"action\": \"create\", \"user_info\": { \"email\": \"test@test.com\", \"type\": 1, \"first_name\": \"Chris\", \"last_name\": \"G\", \"password\": \"Test54321\" }}"


推荐答案

David在这里,由Zapier Platform团队提供。幸运的是,这很简单。由于您使用的是嵌套数据,因此您需要使用Zapier的自定义请求中的Webhooks。设置如下:

David here, from the Zapier Platform team. Luckily, this is an easy one. Since you're using nested data, you'll need to use Webhooks by Zapier's Custom Request. The setup is the following:

Body&网址:

Body & URL:

标题:

您也可以通过代码完成操作,结果也将相同。

You can also do it through code, you'll have the same result.

此外,如果 access_token 仍然有效,请确保已在公众场合将其撤消!

Also, if that access_token is still live, make sure to revoke it now that it's been out in the public!

这篇关于转换Curl命令以在Zapier Webhook中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆