FICORA has not made extensions, but adapted the standard EPP commands to their needs SEE BELOW 1 5 1 John Doe HR Company name 2005-04-03T22:00:00.0Z 123423A123F 1234312-5 123 Example Dr. Suite 100 Suite 100 Dulles VA 20166-6503 US +358401231234 +04040as jdoe@example.com jdoe@example.com 2fooBAR ABC-12345
Inheritance: extends eppCreateContactRequest
Esempio n. 1
0
function createcontact($conn, $email, $telephone, $name, $organization, $address, $postcode, $city, $country)
{
    /* @var $conn Metaregistrar\EPP\eppConnection */
    try {
        $contactinfo = new eppContact(new eppContactPostalInfo($name, $city, $country, $organization, $address, null, $postcode, eppContact::TYPE_LOC), $email, $telephone);
        // Ficora will not accept a password field in the request
        $contactinfo->setPassword(null);
        $contact = new ficoraEppCreateContactRequest($contactinfo);
        $contact->setRole(ficoraEppCreateContactRequest::FI_CONTACT_ROLE_TECHNICAL);
        $contact->setType(ficoraEppCreateContactRequest::FI_CONTACT_TYPE_COMPANY);
        $contact->setIsfinnish(false);
        $contact->setFirstname('Ewout');
        $contact->setLastname('de Graaf');
        $contact->setBirthdate('2005-04-03 22:00');
        $contact->setRegisternumber('1234312-5');
        $contact->setIdentity('123423A123F');
        $contact->setLegalemail($contactinfo->getEmail());
        if ($response = $conn->request($contact)) {
            /* @var $response Metaregistrar\EPP\eppCreateContactResponse */
            echo "Contact created on " . $response->getContactCreateDate() . " with id " . $response->getContactId() . "\n";
            return $response->getContactId();
        }
    } catch (eppException $e) {
        echo $e->getMessage() . "\n";
        echo $e->getLastCommand() . "\n";
    }
    return null;
}