<?php use CodifyLLC\EnomApi; include '../src/Enom.class.php'; // Include the logins file include 'logins.php'; $enom = new CodifyLLC\EnomApi\EnomHelpers(ENOM_USERNAME, ENOM_PASSWORD); if (ENOM_MODE == 'live') { $enom->setLive(); } else { $enom->debugOn(); } $response = $enom->GetDomains(); print_r($response); print 'error count = ' . $response->ErrCount . "\n"; if (!empty($response->ErrCount)) { print "Errors!\n\n"; $errors = get_object_vars($response->errors); foreach ($errors as $key => $error) { print $error . "\n"; } exit; } print "\n"; print "Domains: \n"; $listKey = 'domain-list'; foreach ($response->GetDomains->{$listKey}->domain as $index => $domain) { print $domain->sld . '.' . $domain->tld . "\n"; } print "\n\n";
<?php use CodifyLLC\EnomApi; include '../src/Enom.class.php'; // Include the logins file include 'logins.php'; $enom = new CodifyLLC\EnomApi\EnomHelpers(ENOM_USERNAME, ENOM_PASSWORD); if (ENOM_MODE == 'live') { $enom->setLive(); } else { $enom->debugOn(); } $response = $enom->GetWhoisContact('bannersonthefly.com'); print 'response string = ' . $response . "\n"; print_r($response); print 'error count = ' . $response->ErrCount . "\n"; if (empty($response->ErrCount)) { print "No Errors, continue on...\n"; } else { print "Errors!\n\n"; $errors = get_object_vars($response->errors); foreach ($errors as $key => $error) { print $error . "\n"; } } switch ($response->RRPCode) { case 200: print "Command Completed\n\n"; foreach ($response->GetWhoisContacts->contacts->contact as $index => $contact) { $attributes = $contact->attributes(); print "Contact Type: " . $attributes->ContactType . "\n";
<?php use CodifyLLC\EnomApi; include '../src/Enom.class.php'; // Include the logins file include 'logins.php'; $enom = new CodifyLLC\EnomApi\EnomHelpers(ENOM_USERNAME, ENOM_PASSWORD); if (ENOM_MODE == 'live') { $enom->setLive(); } else { $enom->debugOn(); } $response = $enom->checkDomain('testingcooldomain.com'); print 'error count = ' . $response->ErrCount . "\n"; if (empty($response->ErrCount)) { print "No Errors, continue on...\n"; } else { print "Errors!\n\n"; $errors = get_object_vars($response->errors); foreach ($errors as $key => $error) { print $error . "\n"; } } switch ($response->RRPCode) { case 210: print "Domain Name available!"; break; case 211: print "Domain Name NOT available!"; break; default:
<?php use CodifyLLC\EnomApi; include '../src/Enom.class.php'; // Include the logins file include 'logins.php'; $enom = new CodifyLLC\EnomApi\EnomHelpers(ENOM_USERNAME, ENOM_PASSWORD); if (ENOM_MODE == 'live') { $enom->setLive(); } else { $enom->debugOn(); } $response = $enom->getDomainWholesalPrice(10, 'com'); print_r($response); print 'error count = ' . $response->ErrCount . "\n"; if (empty($response->ErrCount)) { print "No Errors, continue on...\n"; } else { print "Errors!\n\n"; $errors = get_object_vars($response->errors); foreach ($errors as $key => $error) { print $error . "\n"; } } switch ($response->RRPCode) { case 200: print "Command Completed\n\n"; print "Order ID: " . $response->OrderID; print "\n"; break; default:
<?php use CodifyLLC\EnomApi; include '../src/Enom.class.php'; // Include the logins file include 'logins.php'; $enom = new CodifyLLC\EnomApi\EnomHelpers(ENOM_USERNAME, ENOM_PASSWORD); if (ENOM_MODE == 'live') { $enom->setLive(); } else { $enom->debugOn(); } $purchaseModel = new EnomApi\Purchase(); $purchaseModel->setRegistrantFirstName('Lucas'); $purchaseModel->setRegistrantLastName('Hoezee'); $purchaseModel->setRegistrantAddress1('915 Deer Valley Rd'); $purchaseModel->setRegistrantCity('Holly'); $purchaseModel->setRegistrantPostalCode(48442); $purchaseModel->setRegistrantCountry('US'); $purchaseModel->setRegistrantStateProvince('MI'); $purchaseModel->setRegistrantStateProvinceChoice('S'); $purchaseModel->setRegistrantPhone('+1.6165551212'); $purchaseModel->setRegistrantEmailAddress('*****@*****.**'); $purchaseModel->copyRegistrationInfoTo('AUXBILLING'); $purchaseModel->copyRegistrationInfoTo('TECH'); $purchaseModel->copyRegistrationInfoTo('ADMIN'); $response = $enom->Purchase('4ctestupdated.com', $purchaseModel); print 'response string = ' . $response . "\n"; print_r($response); print 'error count = ' . $response->ErrCount . "\n"; if (empty($response->ErrCount)) {
<?php use CodifyLLC\EnomApi; include '../src/Enom.class.php'; // Include the logins file include 'logins.php'; $enom = new CodifyLLC\EnomApi\EnomHelpers(ENOM_USERNAME, ENOM_PASSWORD); if (ENOM_MODE == 'live') { $enom->setLive(); } else { $enom->debugOn(); } $Contact = new \CodifyLLC\EnomApi\Contact(); $Contact->setContactType('REGISTRANT'); $Contact->setContactTypeFirstName('The'); $Contact->setContactTypeLastName('Codify'); $Contact->setContactTypeOrganizationName('Codify, LLC'); $Contact->setContactTypeEmailAddress('*****@*****.**'); $Contact->setContactTypeAddress1('123 Main Str'); $Contact->setContactTypePostalCode(55555); $Contact->setContactTypeCity('Main Town'); $Contact->setContactTypeCountry('USA'); $Contact->setContactTypePhone('6165551212'); $response = $enom->Contacts('restaurants-in-grand-rapids.com', $Contact); print 'error count = ' . $response->ErrCount . "\n"; if (empty($response->ErrCount)) { print "No Errors, continue on...\n"; } else { print "Errors!\n\n"; $errors = get_object_vars($response->errors); foreach ($errors as $key => $error) {