/**
 * @method
 *
 * Create Contacts
 *
 * @name createZimbraContacts
 * @label Create Contacts in Address Book
 *
 * @param string | $ServerUrl | Server name and port where Zimbra exists | zimbra.server:port
 * @param string | $username | Valid username to connect to Zimbra server
 * @param string | $preAuthKey | Server Key for SSO authentication
 * @param string | $firstName | First Name
 * @param string | $lastName | Last Name
 * @param string | $email | Email Address
 * @param string | $otherData | BirthDay/Anniversary/Custom
 * @param string | $otherDataValue | Corresponding Date or Value
 *
 * @return string | $result | Response
 *
 */
function createZimbraContacts($ServerUrl, $username, $preAuthKey, $firstName, $lastName, $email, $otherData, $otherDataValue)
{
    $serializeOp = array();
    $serializeOp = array('firstName' => $firstName, 'lastName' => $lastName, 'email' => $email, 'otherData' => $otherData, 'otherDataValue' => $otherDataValue);
    $serializeOp1 = serialize($serializeOp);
    $zimbra = new Zimbra($username, $ServerUrl, $preAuthKey);
    $connectionResult = $zimbra->connect();
    if (!$connectionResult) {
        return "Check userName or Server URL";
    }
    $sXmlArray = $zimbra->addContacts($serializeOp1);
    if ($sXmlArray) {
        return "Contacts Created succesfully";
    } else {
        return "Some Error";
    }
}