Appilo CRM tilbyr deg en offentlig API-tjeneste, slik at du kan fange opp leads direkte fra nettsiden din og integrere dem i Appilo CRM

Her er eksempeldata

 $data = array(
   "source" => "You website name",
   "Email" => "john@doe.com", // Lead's email
   "Telephone" => "0123453456", // Lead's phone
   "Name" => "John Doe", // Lead's name
   "Comments" => "Some comment", // Some comment about this lead
   "MoverId" => 'xxxxxxxxxxxx', // Your internal ID for reference (optional)
   "EstimatedMoveDate" => "2021-01-01", //format Y-m-d
   "MoveFrom_Address" => "Some street and number", // Pick up location
   "MoveFrom_Country" => "UK", // Pick up country
   "MoveFrom_PostDistrict" => 'xxxxxxxxxxxx', // Pick up post code
   "MoveFrom_property" => 'xxxxxxxxxxxx', // House, Flat, office, etc.
   "MoveFrom_floor" => 'xxxxxxxxxxxx', // Floor level, example: 1, 2, 3, or ground
   "MoveFrom_lift" => 1, // 1 - yes or 0 - no
   "MoveFrom_Bedrooms" => 'xxxxxxxxxxxx', // nr of bedrooms
   "MoveFrom_notes" => "Some notes", // a comment
   "MoveTo_Address" => "Some street and number", // Delivery location
   "MoveTo_Country" => "UK", // Delivery country
   "MoveTo_PostDistrict" => 'xxxxxxxxxxxx', // Delivery post code
   "MoveTo_floor" => 'xxxxxxxxxxxx', // Floor level, example: 1, 2, 3, or ground
   "MoveTo_lift" => 1, // 1 - yes or 0 - no
   "MoveTo_Bedrooms" => 'xxxxxxxxxxxx',
   "MoveTo_notes" => "A comment",
 );

This data must be sent via POST Data should he JSON encoded

 $data_string = json_encode($data);
 $companyUID = 'xxxxxx'; // Your company UID. You can find this in your profile settings
 $ch = curl_init('https://crm.dinflytteportal.no/api/public/new_lead/' . $companyUID);
 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
 curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
   'Content-Type: application/json',
   'Content-Length: ' . strlen($data_string))
 );
 $result = curl_exec($ch);