Realty inquiry

You are able to push data (e.g. contact form) directly to the JUSTIMMO account via the RealtyInquiry object.

<?php
use Justimmo\Request\RealtyInquiryRequest;
use Justimmo\Model\Mapper\V1\RealtyInquiryMapper;

$rq = new RealtyInquiryRequest($api, new RealtyInquiryMapper());
$rq->setRealtyId(12345)
    ->setSalutationId(1) //Mr.
    ->setTitle('Dr.')
    ->setFirstName('John')
    ->setLastName('Doe')
    ->setEmail('john.doe@example.com')
    ->setMessage('This message should be displayed to the responsible user of realty 12345')
    ->setPhone('123456')
    ->setStreet('Mariahilfer Strasse 8/11')
    ->setZipCode('1070')
    ->setCity('Wien')
    ->setCountry('AT')
    ->send();

The passed data as seen above, adds to the JUSTIMMO account a new contact and a relation to the 12345 realty with a logged contact activity. Based on the collected data, the responsible JUSTIMMO user is now able to send an offer.