This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API Module Domain createDomainRequest

From Openprovider API documentation

Revision as of 15:04, 22 April 2010 by WikiSysop (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Module Domain > Create

Module domain
Command name createDomainRequest
Use Registers a domain with the provided data
Input
Output Expiration date in case of a succeeded realtime domain registration
  • expirationDate

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('createDomainRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'ownerHandle' => 'SR003891-NL',
    'adminHandle' => 'SR003891-NL',
    'techHandle' => 'SR003891-NL',
    'domain' => array(
      'name' => 'this-domain-is-registered',
      'extension' => 'com'
    ),
    'period' => '1',
    'nsGroup' => 'opdrs4'
  ));

Raw XML

<?xml version="1.0" encoding="UTF-8"?>
<openxml>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <createdomainrequest>
    <ownerhandle>SR003891-NL</ownerhandle>
    <adminhandle>SR003891-NL</adminhandle>
    <techhandle>SR003891-NL</techhandle>
    <domain>
      <name>this-domain-is-registered</name>
      <extension>com</extension>
    </domain>
    <period>1</period>
    <nsgroup>opdrs4</nsgroup>
  </createdomainrequest>
</openxml>
<?xml version="1.0" encoding="UTF-8"?>
<openxml>
  <reply>
    0
    <desc>
    </desc>
    <data>
      <expirationdate>2011-04-22 14:41:32</expirationdate>
    </data>
  </reply>
</openxml>
Views
Personal tools