You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Send_SMS" />
  </query-continue>
  <query>
    <pages>
      <page pageid="4" ns="0" title="Register">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">
=Domain Function: register=

With this command, you are able to register your domain with boxis.net.


== Input params ==

*'''version'''::String - ''API version (e.g. '1.0')''

*'''timestamp'''::String - ''Sequence of characters, denoting the date and time (e.g '1336553826')''

*'''username'''::String - ''User e-mail address (e.g 'mail1@example.com')''

*'''authcode'''::String - '' md5 hash consisting of the concatenation of timestamp and user_key (e.g md5(1336553826BX3KwWU2SuqvoEWnjYmOibf'))''

*'''section'''::String - ''API module name. Use 'domains' value

* '''action'''::String - API module function. Use 'register' value

*'''domain'''::String - ''Domain name that you need to register''

*'''years'''::Integer - ''Number of years for which you wish to register this domain name''

*'''ns[1],ns[2],..ns[5]'''::Array of Strings (optional) - ''List of Name Servers to be associated with the domain name. A maximum of 5 Name Servers can be specified''

*'''protect-privacy'''::Boolean - ''Enables / Disables the Privacy Protection setting for the domain name. Possible values are: 1 or 0'

*'''registrant'''::Array of Strings (optional) - ''Registrant contact details. Possible array keys are: firstname, lastname, companyname, address1, address2, city, state, country, postcode, email, phonenumber'

*'''billing'''::Array of Strings (optional) - ''Billing contact details. Possible array keys are: firstname, lastname, companyname, address1, address2, city, state, country, postcode, email, phonenumber'

*'''admin'''::Array of Strings (optional) - ''Admin contact details. Possible array keys are: firstname, lastname, companyname, address1, address2, city, state, country, postcode, email, phonenumber'

*'''tech'''::Array of Strings (optional) - ''Tech contact details. Possible array keys are: firstname, lastname, companyname, address1, address2, city, state, country, postcode, email, phonenumber'


== Example URL with POST values ==

&lt;pre&gt;
http://api.boxis.net/
POST: version=1.0&amp;returntype=xml&amp;timestamp=1337853736&amp;username=your@mail.com&amp;authcode=1234567890&amp;section=domains&amp;action=register&amp;domain=test1.com&amp;years=2&amp;ns[1]=ns1.boxis.ch&amp;ns[2]=ns2.boxis.ch
      &amp;protect-privacy=1&amp;registrant[firstname]=John&amp;registrant[lastname]=Doe&amp;registrant[companyname]=company1&amp;registrant[address1]=baker+street+5&amp;registrant[address2]=&amp;registrant[city]=NY&amp;registrant[state]=N
      &amp; registrant[country]=USA&amp;registrant[postcode]=2322&amp;registrant[email]=mail1%40mail.com&amp;registrant[phonenumber]=48551151565
&lt;/pre&gt;

== Output params ==

==== Example in XML (Success) ====

&lt;pre&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;return&gt;
  &lt;result&gt;1&lt;/result&gt;
  &lt;resulttxt&gt;success&lt;/resulttxt&gt;
  &lt;params/&gt;
  &lt;timestamp&gt;1335767184&lt;/timestamp&gt;
&lt;/return&gt;
&lt;/pre&gt;

==== Example in XML (Error) ====

&lt;pre&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;return&gt;
  &lt;result&gt;0&lt;/result&gt;
  &lt;resulttxt&gt;Error: {error description}&lt;/resulttxt&gt;
  &lt;params/&gt;
  &lt;timestamp&gt;1335767184&lt;/timestamp&gt;
&lt;/return&gt;
&lt;/pre&gt;

==== Example in JSON (Success) ====

&lt;pre&gt;
{&quot;result&quot;:&quot;1&quot;,
 &quot;resulttxt&quot;:&quot;success&quot;,
 &quot;params&quot;:[],
 &quot;timestamp&quot;:1335777400}
&lt;/pre&gt;

==== Example in JSON (Error) ====

&lt;pre&gt;
{&quot;result&quot;:&quot;0&quot;,
 &quot;resulttxt&quot;:&quot;Error: {error description}&quot;,
 &quot;params&quot;:[],
 &quot;timestamp&quot;:1335777400}
&lt;/pre&gt;


== Example using our PHP Class ==

&lt;pre&gt;
/* API LOGIN DETAILS */
$email    = 'your@mail.com';    // your username
$apikey   = '1234567890';        // your apikey

/* API COMMAND DETAILS */
$apitype  = 'domains';
$command  = 'register';
$params   = array(
    'returntype' =&gt; 'xml',
    'domain' =&gt; 'test1.com',
    'years' =&gt; 2,
    'ns[1]' =&gt; 'ns1.boxis.ch',
    'ns[2]' =&gt; 'ns2.boxis.ch',
    'protect-privacy' =&gt; 1,
    'registrant[firstname]' =&gt; 'John',
    'registrant[lastname]' =&gt; 'Doe',
    'registrant[companyname]' =&gt; 'company1',
    'registrant[address1]' =&gt; 'baker street 5',
    'registrant[address2]' =&gt; '',
    'registrant[city]' =&gt; 'NY',
    'registrant[state]' =&gt; 'NY',
    'registrant[country]' =&gt; 'USA',
    'registrant[postcode]' =&gt; '2322',
    'registrant[email]' =&gt; 'mail1@mail.com',
    'registrant[phonenumber]' =&gt; '48551151565'
);

/* PROCESS THE ACTION */
$boxisAPI = new BoxisAPIConnection($email, $apikey);
$return = $boxisAPI-&gt;call($apitype, $command, $params, $timestamp);

/* TIMESTAMP SYNCHRONIZATION (JSON EXAMPLE)
if($return['timestamperror']) {
    $timestamp = $return['timestamp'];
    $return = $boxisAPI-&gt;call($apitype, $command, $params, 'json', $timestamp);
}
*/

/* TIMESTAMP SYNCHRONIZATION (XML EXAMPLE)*/
/*
if($return-&gt;timestamperror) {
    $timestamp = $return-&gt;timestamp;
    $return = $boxisAPI-&gt;call($apitype, $command, $params, 'xml', $timestamp);
}
/*

&lt;/pre&gt;</rev>
        </revisions>
      </page>
      <page pageid="6" ns="0" title="Renew">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">=Domain Function: renew=

With this command, you are able to renew your domain to boxis.net.


== Input params ==

*'''version'''::String - ''API version (e.g. '1.0')''

*'''timestamp'''::String - ''Sequence of characters, denoting the date and time (e.g '1336553826')''

*'''username'''::String - ''User e-mail address (e.g 'mail1@example.com')''

*'''authcode'''::String - '' md5 hash consisting of the concatenation of timestamp and user_key (e.g md5(1336553826BX3KwWU2SuqvoEWnjYmOibf'))''

*'''section'''::String - ''API module name. Use 'domains' value

*'''action'''::String - ''API module function. Use 'renew' value

*'''domain'''::String - ''Domain name that you need to renew''

*'''years'''::Integer - ''Number of years for which you want to renew create order''


== Example URL with POST values ==

&lt;pre&gt;
http://api.boxis.net/
POST: version=1.0&amp;returntype=xml&amp;timestamp=1337853982&amp;username=your@mail.com&amp;authcode=1234567890&amp;section=domains&amp;action=renew&amp;domain=test1.com&amp;years=4
&lt;/pre&gt;

== Output params ==

==== Example in XML (Success) ====

&lt;pre&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;return&gt;
  &lt;result&gt;1&lt;/result&gt;
  &lt;resulttxt&gt;success&lt;/resulttxt&gt;
  &lt;params/&gt;
  &lt;timestamp&gt;1335767184&lt;/timestamp&gt;
&lt;/return&gt;
&lt;/pre&gt;

==== Example in XML (Error) ====

&lt;pre&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;return&gt;
  &lt;result&gt;0&lt;/result&gt;
  &lt;resulttxt&gt;Error: {error description}&lt;/resulttxt&gt;
  &lt;params/&gt;
  &lt;timestamp&gt;1335767184&lt;/timestamp&gt;
&lt;/return&gt;
&lt;/pre&gt;

==== Example in JSON (Success) ====

&lt;pre&gt;
{&quot;result&quot;:&quot;1&quot;,
 &quot;resulttxt&quot;:&quot;success&quot;,
 &quot;params&quot;:[],
 &quot;timestamp&quot;:1335777400}
&lt;/pre&gt;

==== Example in JSON (Error) ====

&lt;pre&gt;
{&quot;result&quot;:&quot;0&quot;,
 &quot;resulttxt&quot;:&quot;Error: {error description}&quot;,
 &quot;params&quot;:[],
 &quot;timestamp&quot;:1335777400}
&lt;/pre&gt;


== Example using our PHP Class ==

&lt;pre&gt;
/* API LOGIN DETAILS */
$email    = 'your@mail.com';    // your username
$apikey   = '1234567890';        // your apikey

/* API COMMAND DETAILS */
$apitype  = 'domains';
$command  = 'renew';
$params   = array(
    'returntype' =&gt; 'xml',
    'domain' =&gt; 'test1.com',
    'years' =&gt; 4
);

/* PROCESS THE ACTION */
$boxisAPI = new BoxisAPIConnection($email, $apikey);
$return = $boxisAPI-&gt;call($apitype, $command, $params, $timestamp);

/* TIMESTAMP SYNCHRONIZATION (JSON EXAMPLE)
if($return['timestamperror']) {
    $timestamp = $return['timestamp'];
    $return = $boxisAPI-&gt;call($apitype, $command, $params, 'json', $timestamp);
}
*/

/* TIMESTAMP SYNCHRONIZATION (XML EXAMPLE)*/
/*
if($return-&gt;timestamperror) {
    $timestamp = $return-&gt;timestamp;
    $return = $boxisAPI-&gt;call($apitype, $command, $params, 'xml', $timestamp);
}
/*

&lt;/pre&gt;</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>