- MarkPuttAsked on February 27, 2014 at 12:59 PM
Where can I find information on the array that a Webhook will create and send to a php page?
Let me explain exactly what I'm doing. I'm sending information to a php page. I need to be able to inspect the webhooks array so I can access those elements. I want to take certian items from the array, load them into variables then add them to an insert query. This insert query will add the selected info to a MySQL database.
So, I need to be able to see the names, indexes etc... of all the memebers of the array.
Using Fiddler is not much help. The info in Fiddler does not reflect the structure of the array being sent by the jotform webhooks.
- JotForm SupportTitusNAnswered on February 27, 2014 at 03:14 PM
Thank you for contacting us.
Please review our API documentation on WEbhooks and advice us where we can assist: http://api.jotform.com/docs/#post-form-id-webhooks
Looking forward to your response.
- MarkPuttAnswered on February 27, 2014 at 04:37 PM
I read this over and it's really no help. This is completely out of context. I just need to see the array being sent. I don't have any desire or need to use the API.
- JotForm SupportTitusNAnswered on February 27, 2014 at 04:48 PM
We will update this thread as soon as possible.
Thank you for your patience.
- JotForm SupportMike_TAnswered on February 27, 2014 at 05:10 PM
We would like to recommend you to try a http://requestb.in/ service in order to inspect the data sent by webhook.
The data is being sent in JSON format, so that you can use json_decode PHP function to get the array. We have some samples provided in the following article:
Note, the Post data option is also available, but it is a bit different from our Webhooks:
- AmSteveAnswered on June 19, 2014 at 12:36 PM
A quick followup to Mike's answer. Another page on the site: http://www.jotform.com/answers/378680-What-is-webhooks says what seems to be an opposite overview:
Webhook is a technique used to send HTTP POST notifications to a URL. They can be used to connect apps together or just send data.
So what's the diff between posting data and a webhook? Webhook = JSON?
If hitting an endpoint at my server backed by an ASP.NET MVC controller, I think I'd be better of POSTing data becuase of how well MVC binds a form to an internal structure.