Exemplo n.º 1
0
<?php

include_once '../includes/Five9.php';
/**
 *  * Created By: Ryan Kiel
 *
 * SERVICE CALLS:
 * field->(displayAs,mapTo,Name,restrictions->(isEnabled,type,value),system,type)
 *
 * RETURNS:
 * createContactFieldResponse
 */
$five9 = new f9();
$contactFieldRestriction = array('isEnabled' => false, 'type' => '', 'value' => '');
$field = array('field' => array('displayAs' => 'Short', 'mapTo' => 'None', 'name' => 'other', 'system' => false, 'type' => 'STRING'));
$result = $five9->createContactField($field);
print_r($result);
/*
RETURNS
Begin<br/><br/>601fhjhhhh58-45d5-86e8-43b720beaf76stdClass Object
(
    [return] => stdClass Object
        (
            [failureMessage] => There were errors during the upload
            [keyFields] => number1
            [uploadDuplicatesCount] => 0
            [uploadErrorsCount] => 0
            [warningsCount] => stdClass Object
                (
                    [entry] => stdClass Object
                        (