PHP using Curl to create a lead including inserting data into custom fields
i can create a lead but then it comes to adding custom fields with data it doesn’t work
and if posting the data to the lead does it also have to be in json_encode()
eg
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($leadcustomfields));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’));