简体   繁体   English

从PHP Curl获得POST Zapier webhook响应

[英]Get a POST Zapier webhook response from PHP Curl

I´m using Zapier Webhooks for integration between a Web Portal and an API. 我正在使用Zapier Webhooks在Web门户和API之间进行集成。 Both, the web portal and the API was developed with php. Web门户和API都是使用php开发的。 I´m using curl to send a request to a catch hook in Zapier, sending the Post Data. 我正在使用curl将请求发送到Zapier中的catch挂钩,并发送Post数据。 Then in my zap, the second step toke the catched fields and send it as form data to and PUT webhook to my API URL. 然后,在我的zap中,第二步确定捕获的字段,并将其作为表单数据发送到我的API URL并将其PUT Webhook发送。

The problem is that in my portal, when I print the response of this call it always show something like this: 问题是,在我的门户中,当我打印此调用的响应时,它总是显示如下内容:

{"status": "success", "attempt": "5a81c6d1-bb9b-4afe-9ece-0cba4a0a52b0", "id": "cec1978a-c98f-4521-89f3-83a4041c15a4", "request_id": "5a81c6d1-bb9b-4afe-9ece-0cba4a0a52b0"}

But I need the real response of the webhook in the second step, showed in my zapier task as Data Output. 但是我需要第二步中webhook的真实响应,这在我的zapier任务中显示为Data Output。

Someone knows why this is happening and how can I get the real response? 有人知道为什么会这样,我如何获得真正的回应?

Thanks 谢谢

David here, from the Zapier Platform team. Zapier Platform团队的David在这里。

What you're describing isn't currently possible. 您正在描述的内容目前无法实现。 When Zapier receives a hook, it lets the sender know the hook was successful and they need not retry; 当Zapier接收到一个钩子时,它将使发送者知道该钩子已成功,并且它们无需重试。 this isn't customizable. 这是不可自定义的。

In this situation, it sounds like you need a simple webserver, so you can customize the in and out behavior of your data? 在这种情况下,听起来好像您需要一个简单的Web服务器,因此您可以自定义数据的输入和输出行为? Or skip Zapier entirely and send the webhook directly to the destination. 或完全跳过Zapier,然后将Webhook直接发送到目的地。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM