Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExample
if (isset($_GET['CallerIDNum']) && isset($_GET['CalledExtension'])){

// use the CRM API to identify the customer ID based on the caller ID number
$CRMcustomerID = identifyCustomer($_GET['CallerIDNum']);

// use some internal logic, or SystemAPI to determine employee name based on the relation phoneNumber - staff member
$employeeName = identifyEmployee($_GET['CalledExtension']);

// use the CRM API to leave a note on the customer
leaveNote($CRMcustomerID, "Incoming call at ".date('Y-m-d H:i:s').' answered by '.$employeeName.' ('.$_GET['CalledExtension'].')'); }

...