Converting a Curl command to run in a Zapier Webhook

大兔子大兔子 提交于 2019-12-13 13:50:21

问题


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\" }}"

回答1:


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 & URL:

Headers:

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

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



来源:https://stackoverflow.com/questions/50789542/converting-a-curl-command-to-run-in-a-zapier-webhook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!