Forums

Sending CURL response to Zapier webhook

interactie 05 Aug, 2018
Hi,

I'm using CURL to send form data to an API. The API response is (found using debug):
[var] => HTTP/1.1 200 OK
Date: Sun, 05 Aug 2018 22:48:52 GMT
Content-Type: application/json; charset=utf-8
...
Server: cloudflare

{"account":"xxxx","username":"xxxx","password":"xxxx","result_output":"json"}
The debug shows the accountname, username and password. That's great!

How do I insert this password value (other information is not important) in a hidden field to be able to process this in a Zapier webhook? (If the hidden field suggestion is not necessary, please let me know).

Short: I need the password value only in Zapier using the Zapier webhook. How to do this?
I'm using Chronoforms 6, Zapier webhook, Joomla

Thank you in advance!
GreyHead 06 Aug, 2018
Hi interactie,

Where does the password value come from?

I've never used the Zapier web-hook action but it looks as if it uses the standard Cfv6 data values - either an array name in the Data provider box and/or extra values or over-rides in the Data override box using the key_name:value format.

Bob
interactie 06 Aug, 2018
The returned values (user and pw) are generated by the external API and the debug is showing this information (API response).
  1. The CURL part works (form data to external API, API response in debug)
  2. In success I'm using the Zapier webhook assuming the response containing the password is somehow included
[var]
...
{"account":"xxxx","username":"xxxx","password":"xxxx","result_output":"json"}
is the response.

What do I need to enter here:


var as data provider is not working.
Thanks!
This topic is locked and no more replies can be posted.