I am trying to create a way to send user data to a third Party API (Cvent) without having a logged in site visitor fill out a form.
The API requires a users first name, last name, and email address in order to connect to a event page I create. Only site members will have access to these pages so I should already have the required users info when they register as a site member.
What I would like is to have a button that will collect the logged in users first name, last name, and email then send it to the API via POST method.
I will have to collect and send this info using PHP, but I don’t know how to get that user data. Any help with that would be greatly appreciated.