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')
->setCategory('Demo Category')
->setIsRealtyOwner(true)
->setRealtyOwnerConsultationRequest(false)
->registerForNewsletter([4, 10], false)
->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.