I have built templates to export my EE site as a JSON API. I am trying to set up a static site generator deploying to Netlify.
What I want is to run a curl command when I create a new entry or update an old one to trigger a build and deploy by Netlify.
curl -X POST -d '{}' https://api.netlify.com/build_hooks/XXXXXXXXXXXXXXX
I am pretty familiar with PHP but zero experience with EE. What would be the best way to achieve this?
Thanks.