Exemplo n.º 1
0
<?php

include_once '../includes/Five9.php';
/**
 *  * Created By: Ryan Kiel
 *
 * SERVICE CALLS:
 * lookupCriteria type: crmLookupCriteria
 *
 * RETURNS:
 * return->contactLookupResult
 */
$five9 = new f9();
$lookupCriteria = array('contactIdField' => '123', 'criteria' => array(array('field' => 'first_name', 'value' => 'bb44oy'), array('field' => 'last_name', 'value' => 'Draper')));
$result = $five9->getContactRecords($lookupCriteria);
echo "returned start\n";
print_r($five9->getLastRequest($five9));
echo "returned end\n";
echo '<pre>';
var_dump($result);
echo '</pre>';
echo "END";
/*
Begin<br/><br/>asdfasdfstring(583) "<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://service.admin.ws.five9.com/">
  <SOAP-ENV:Body>
    <ns1:getContactRecords>
      <lookupCriteria>
        <contactIdField>123</contactIdField>
        <criteria>
          <field>first_name</field>