Hello! I'm having a real tough time with the WP Webhooks plugin at the moment. I've got some requests in from support but they seem slow to hear back from at times.
So, what I'm wanting to do is receive item price/availability notifications from this website GlassIt. They send JSON packets with this body:
{
"itemURL": "https://www.homedepot.com/p/4-in-x-4-in-x-12-ft-2-Pressure-Treated-Ground-Contact-Southern-Pine-Timber-4230254/100073070","price": "$23.38","type": "in stock"
}
So, with that info I'm trying to set up a webhook that creates or updates a post. Preferably this post will be a custom post type of my creation using CPT UI, and ACF. So currently I've tried to download the info as a file and I couldn't seem to locate the files that were supposedly being created.
I tried to create posts with the webhook, but that didn't seem to work either.
Finally, I tried to do a custom PHP function using some code that ChatGPT cooked up and expectedly that didn't work either.
I'm thinking I may be approaching this incorrectly, and perhaps I should be sending this data to a central database with the webhook and then populating posts or something?
The end goal is to have a grid of posts showing the lowest price available for a particular item, like a deal aggregator.
Any advice on the matter would be appreciated. I've included some screengrabs from some testing using Postman, my current data mapping setup on WP Webhooks, and some request logs. Thanks
Data Mapping:
{"template_settings":{"wpwhpro_data_mapping_whitelist_payload":"none"},"template_data":[{"new_key":"itemURL","singles":["{\"settings\":{\"wpwhpro_data_mapping_value_type\":\"key_mapping\",\"wpwhpro_data_mapping_convert_data\":\"none\",\"wpwhpro_data_mapping_decode_data\":\"none\",\"wpwhpro_data_mapping_fallback_value\":\"\"},\"value\":\"_meta.product_url\"}"]},{"new_key":"price","singles":["{\"settings\":{\"wpwhpro_data_mapping_value_type\":\"key_mapping\",\"wpwhpro_data_mapping_convert_data\":\"none\",\"wpwhpro_data_mapping_decode_data\":\"none\",\"wpwhpro_data_mapping_fallback_value\":\"\"},\"value\":\"_meta.price\"}"]},{"new_key":"type","singles":["{\"settings\":{\"wpwhpro_data_mapping_value_type\":\"key_mapping\",\"wpwhpro_data_mapping_convert_data\":\"none\",\"wpwhpro_data_mapping_decode_data\":\"none\",\"wpwhpro_data_mapping_fallback_value\":\"\"},\"value\":\"_meta.price_type\"}"]}]}
