Hi Y’all,
I have a client that needs me to pass form submissions through to a 3rd party CRM via an API call.
Will the webhooks add-on do this? If so, can anyone offer some advice on how to configure the add on?
Below is the API call to send the data to.
TIA!!!
$post_url = 'https://api.club-os.com/prospects?clubLocationId=[clubLocationId]' ;
$body = array(
'firstName' => $first_name,
'lastName' => $last_name,
'email' => $email,
'mobilePhone' => $mobile_phone,
'notes' => $notes,
'source' => $source,
'gender' => 'M'
);
$body_json = json_encode($body);
$args = array(
'headers' => array(
'Authorization' => 'Basic ' . base64_encode( '[username]' . ':' . '[password]' ),
'Content-type' => 'application/json'
),
'body' => $body_json,
'sslverify' => false
);
$resp = wp_remote_post( $post_url, $args );