Hi guys,
I'm new to Zapier and am trying to set up a trigger that inserts data using our api. When testing it however, I don't seem to get any of the entered test data though.
I have entered the test data into Zapier as you can see below:
In our code I have tried the following to get e.g. the api_partner_id:
$postData = json_decode(file_get_contents('php://input'), true);
$api_partner_id = $postData['api_partner_id']
=> empty result
$postData = json_decode(file_get_contents('php://input'), true);
$api_partner_id = $postData['inputData']['api_partner_id'] //(i saw in the raw version of the test data dat all data is put into 'inputData'
=> empty result
$api_partner_id = $_POST['api_partner_id']
=> empty result
When I run the test, the funny thing is that the Request data only contains {"hookUrl":"https://hooks.zapier.com/fake-subscription-url"} according to what I can see in Zapier
Can anyone help me or guide me to some sort of tutorial pretty please? I have already spent more time on getting everything to work in Zapier than writing the API itself
Thanks!