Detalles de propiedades

Usando la información resultante

Instrucciones basicas

Ejemplo con "api.inc"

<?php
include_once "api.inc";

//CHANGE THIS APIKEY WITH YOUR REAL STATE APIKEY 
$auth = new TokkoAuth('5940ea45eb7cfb55228bec0b958ea9c0be151757');

// CREATE PROPERTY OBJECT
$property = new TokkoProperty('id', $_REQUEST["id"], $auth);

//$property->get_field('NAME_FIELD_PROPERTY')

?>
<div>
  <div>
    <h2> <?echo $property->get_field('publication_title')?> </h2>
  </div>
  <div>
    <p>Codigo Propiedad: <?echo $property->get_field('reference_code')?></p> 	
    <p> Precio: <?echo $property->get_field('web_price')?  implode(" | ",$property->get_available_operations()): "Consulte precio;" ?> </p>
    <p> Ambientes: <?echo $property->get_field('room_amount')?> </p>
    <p> Baños: <?echo $property->get_field('bathroom_amount')?> </p>
    <p> Metros Lote: <?echo $property->get_field('surface')?> </p>
    <p> Metros Construidos: <?echo $property->get_field('roofed_surface')?></p>
    <p> <?echo $property->get_field("description")?></p>
  </div>
</div>

Common fields:

  • publication_title
  • reference_code
  • web_price
  • address
  • room_amount
  • bathroom_amount
  • surface
  • geo_lat
  • geo_long
  • description
  • construction_date
  • location
  • photo