Testeo de formulario de SuiteCRM
<?php | |
$postform = Array( | |
'entryPoint' => 'WebToLeadCapture', | |
'first_name' => 'Daniel', | |
'last_name' => 'Daniel', | |
'campaign_id' => 'a53d5255-049c-fa69-4c92-5567aac6ffe2', | |
'assigned_user_id' => '1', | |
'webtolead_email1' => 'email@example.com', | |
); | |
error_log(json_encode($postform)); | |
$url = URL; | |
$curl = curl_init($url); | |
curl_setopt($curl, CURLOPT_POST, true); | |
curl_setopt($curl, CURLOPT_HEADER, false); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, $postform); | |
$response = curl_exec($curl); | |
var_dump($response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment