RealEstate.co.nz Test Form

Ether POST to /search.xml with the content-type of 'text/xml' and the body being the XML, or use this form below:

XML Post example

Below is an example of an HTTP POST with the XML:
POST /search.xml HTTP/1.1
User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
Host: reconz.open2view.com
Content-Type: text/xml (application/xml is also accepted)
Content-Length: 359

<?xml version="1.0"?>
<search>
    <open2view_id>172500</open2view_id>
    <agency_id>RU2585</agency_id>
    <address>
        <street_number>614</street_number>
        <unit_number></unit_number>
        <street_name>Moonshine Hill road</street_name>
        <postcode>3210</postcode> Currently ignored
        <suburb>Blah</suburb> Currently ignored
        <area>Hamilton City</area> Currently ignored
        <region>Waikato</region> Currently ignored
    </address>
    <latitude>-41.1</latitude>
    <longitude>175</longitude>
</search>
	

Notes:

  1. If the Open2view ID# is specified, it will be used and all other fields will be ignored
  2. If the Agency ID# and Latitude and Longitude is specified, only the property that match the Agency ID and is within 1km will be return. Other fields will be ignored (Latitude and Longitude are optional)
  3. Otherwise, the address will be looked up. If the latitude and longitude is provided, only the property matching the address and are within 1km will be returned

If XML is not used, then you can do an HTML POST with post-data the same as the form above would construct. Check the Field names from the HTML.

XML Response example

HTTP/1.1 200 OK
Date: Thu, 07 Feb 2008 00:15:32 GMT
Content-Type: application/xml
Encoding: UTF-8
Content-Length: 13219

<?xml version="1.0" encoding="UTF-8"?>
<property last_updated="Fri Jan 04 19:01:48 +1300 2008" id="162528">
  <address>614 Moonshine Hill Road</address>
  <agency_id>57886</agency_id>
  <status>CURRENT</status>
  <latitude>-41.0949013784599</latitude>
  <longitude>175.005694627762</longitude>
  <photos count="8">
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg">http://www.nz.open2view.com/assets/property/XL/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/e/9/e985027d0614a7a34f8ecd2863fc96d6dbfafa73.jpeg">http://www.nz.open2view.com/assets/property/XL/e/9/e985027d0614a7a34f8ecd2863fc96d6dbfafa73.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/9/b/9bf64726aaea5980e7c693d5daeca67534849a92.jpeg">http://www.nz.open2view.com/assets/property/XL/9/b/9bf64726aaea5980e7c693d5daeca67534849a92.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/7/0/70b21e03733134d84f9c21b52b305e0ad43fbd1b.jpeg">http://www.nz.open2view.com/assets/property/XL/7/0/70b21e03733134d84f9c21b52b305e0ad43fbd1b.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/6/9/6911b8534ba3cf7614cad98545ccc2a855f60333.jpeg">http://www.nz.open2view.com/assets/property/XL/6/9/6911b8534ba3cf7614cad98545ccc2a855f60333.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/6/6/666a43b246343e6e958d0c44c6e85962b7bff2b1.jpeg">http://www.nz.open2view.com/assets/property/XL/6/6/666a43b246343e6e958d0c44c6e85962b7bff2b1.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/4/0/4065ad2f687210cd9a242c5e24d4b07579937031.jpeg">http://www.nz.open2view.com/assets/property/XL/4/0/4065ad2f687210cd9a242c5e24d4b07579937031.jpeg</photo>
    <photo type="Normal" caption="" thumbnail="http://www.nz.open2view.com/assets/property/100/f/8/f8d69f62d0bf29cc7a4b36b2550b8fcd53015e94.jpeg">http://www.nz.open2view.com/assets/property/XL/f/8/f8d69f62d0bf29cc7a4b36b2550b8fcd53015e94.jpeg</photo>
  </photos>
  <virtualtours count="8">
    <virtualtour caption="Big Front lawn" thumbnail="http://www.nz.open2view.com/assets/property/66/7/e/7e4ef33ae024d687d8eb06af315efd776e0dbb0a.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=0</virtualtour>
    <virtualtour caption="Entrance" thumbnail="http://www.nz.open2view.com/assets/property/66/8/0/80ba62e9718c2799835c20736c87bd86dc820a47.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=1</virtualtour>
    <virtualtour caption="Formal Lounge" thumbnail="http://www.nz.open2view.com/assets/property/66/8/0/801377bdf78a59744871576395d3b4636752aecf.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=2</virtualtour>
    <virtualtour caption="Dining" thumbnail="http://www.nz.open2view.com/assets/property/66/3/0/3063453f590992b8c1ee8d99fd9594a9edb76079.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=3</virtualtour>
    <virtualtour caption="Family Room" thumbnail="http://www.nz.open2view.com/assets/property/66/5/4/54ff406253e0f086cbd55a00e92d65a151ef97dd.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=4</virtualtour>
    <virtualtour caption="Entertaining Outdoor Area" thumbnail="http://www.nz.open2view.com/assets/property/66/0/b/0b91d9626c819b2f30540c5bf55b96cc735c6b08.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=5</virtualtour>
    <virtualtour caption="Master Bedroom" thumbnail="http://www.nz.open2view.com/assets/property/66/3/4/34fa0b072fe1696e7c2472a09cc55be22dc2b32e.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=6</virtualtour>
    <virtualtour caption="Top Of The Stairs" thumbnail="http://www.nz.open2view.com/assets/property/66/f/8/f8b5fadb5c83898ac7190f49e299148665900bfe.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=7</virtualtour>
  </virtualtours>
  <floorplans count="0">
  </floorplans>
</property>
	

Any questions about anything regarding this interface please address to webmaster@open2view.com