WordPress / PHP – Integration with external API

I have a form in WordPress (contact form 7), when the user submits, I need to generate a json with the fields and send to an external API. Need to use with class https://pastebin.com/4upuPqYd, anyone to help with some way?
I created two class.php files, one that will be used specifically for one form, and another base, which will be used in more places (3 specific pages, 3 forms).

For the time being, I just need to generate this Json with the form data, and send it to the API, the next steps were for another time.

[1]: https://pastebin.com/4upuPqYd

Read more here:: WordPress / PHP – Integration with external API

Leave a Reply

Your email address will not be published. Required fields are marked *