Login   Register  
PHP Classes
elePHPant
Icontem

File: example.transferDomain.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bakr Alsharif  >  Enom API  >  example.transferDomain.php  >  Download  
File: example.transferDomain.php
Role: Example script
Content type: text/plain
Description: Transfer Domain Example
Class: Enom API
Manipulate domain registration using the Enom API
Author: By
Last change:
Date: 8 years ago
Size: 1,726 bytes
 

Contents

Class file image Download
<?php
//
// +-----------------------------------+
// |          Enom API v 1.0           |
// |      http://www.SysTurn.com       |
// +-----------------------------------+
//
//
//   This program is free software; you can redistribute it and/or modify
//   it under the terms of the ISLAMIC RULES and GNU Lesser General Public
//   License either version 2, or (at your option) any later version.
//
//   ISLAMIC RULES should be followed and respected if they differ
//   than terms of the GNU LESSER GENERAL PUBLIC LICENSE
//
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
//
//   You should have received a copy of the license with this software;
//   If not, please contact support @ S y s T u r n .com to receive a copy.
//

require_once('class.EnomService.php');

$enom = new EnomService('username''********'falsetrue);
$enom->debug true;

$contacts = array();
$contacts['EmailAddress'] = 'foo@some-email.com';
$contacts['Fax'] = '20.1234567890';
$contacts['Phone'] = '20.1234567890';
$contacts['Country'] = 'Egypt';
$contacts['PostalCode'] = '33333';
$contacts['StateProvinceChoice'] = '';
$contacts['City'] = 'Cairo';
$contacts['Address1'] = '10 FOO STREET';
$contacts['Address2'] = '';
$contacts['FirstName'] = 'Bakr';
$contacts['LastName'] = 'Alsharif';
$contacts['JobTitle'] = 'Chairman';
$contacts['OrganizationName'] = 'SysTurn';
    
$result $enom->transferDomain('systurn.com'$contacts);

echo 
'<pre>';
var_dump($result);
echo 
'</pre>';

?>