Contacts & Enquiries via HTTP
This API allows you to submit contact information and enquiry details submitted by any user who fills in a web form on your website. Contacts along with their enquiry details can be viewed in the Contacts section of Zoo Property. If it was a property enquiry then the enquiry can also be viewed in the Notes section of that property. This API can be used to remit this information from any type application including Office Website, Mobile Phone Site, iPad Site, facebook Application and anything else.
HTTP Post facility
- http://agentpoint.agentaccount.com/agents/1/offices/1/contact_listeners
Output:
<records type="array"><record><error-message/><error-fields/><success type="boolean">true</success><data><office-id>1</office-id><agent-id>1</agent-id><property-id>396</property-id><title>mr</title><first-name>foo</first-name><last-name>bar</last-name><email>foo@bar.com</email><contact-number/><fax-number/><home-number/><mobile-number/><work-number/><country/><alert>1</alert><alert-type/><contract>1</contract><note-type>2</note-type><heard-from-id>8</heard-from-id><heard-about-us>6</heard-from-id><category-id>2</category-id><address/><note/><listing-type/><property-type/><suburbs/><min-bedroom/><min-bathroom/><min-carspace/><max-price/><min-price/></data></record></records>
Parameter Descriptions
| Field | Description |
|---|---|
agent_id |
This corresponds to the ID of the agent. |
office_id |
This corresponds to the ID of the office. |
property_id |
This corresponds to the ID of the property. |
title |
VARCHAR(255) |
first_name |
Mandatory Field – VARCHAR(255) |
last_name |
Mandatory Field – VARCHAR(255) |
email |
VARCHAR(255) |
home_number |
VARCHAR(255) |
work_number |
VARCHAR(255) |
mobile_number |
VARCHAR(255) |
contact_number |
VARCHAR(255) |
fax_number |
VARCHAR(255) |
alert |
1 or 0 – 1 specifies the contact sign up for alert. 0 specifies the contact are not sign up for alert |
contract |
1 or 0 – 1 specifies the contact given contract/application. 0 specifies the contact are not given contract/application |
heard_from_id |
Integer(11) The “type” of property the contact fills the form heard_from_id = 7 → Office Website heard_from_id = 8 → Individual Property Website heard_from_id = 9 → Individual Agent Website heard_from_id = 10 → Mobile Phone Website heard_from_id = 11 → Iphone Application heard_from_id = 12 → Facebook Application heard_from_id = 13 → Telephone heard_from_id = 14 → Internet (Source 1) heard_from_id = 15 → Internet (Source 2) heard_from_id = 16 → Internet (Source 3) heard_from_id = 17 → Print (Source 1) heard_from_id = 18 → Print (Source 2) heard_from_id = 19 → Print (Source 3) heard_from_id = 20 → Email Alert heard_from_id = 21 → SMS Alert heard_from_id = 22 → Signboard heard_from_id = 23 → Referral |
country |
VARCHAR(255) |
note_type |
Mandatory Field – Integer(11) The “type” of note note_type = 2 → Sales Appraisal note_type = 3 → Rental Appraisal note_type = 4 → Alert- Created note_type = 5 → Open Inspection Attendee note_type = 6 → Property Enquiry note_type = 7 → Submit Offer note_type = 8 → Purchase Property note_type = 9 → Lease Property note_type = 10 → Attend Auction note_type = 11 → Testimonial note_type = 12 → Contract Provided note_type = 13 → General |
note |
TEXT (the note or comment) |
address |
VARCHAR (255) / address for the property |
alert_type |
VARCHAR (255) alert_type = “Newly Listed Properties” alert_type = “Updated Properties” alert_type = “Open Inspections” alert_type = “Sold/Leased Properties” alert_type = “Auctions” alert_type = “Latest News” |
listing_type |
VARCHAR (255) listing_type = “BusinessSale” listing_type = “Commercial” listing_type = “ResidentialLease” listing_type = “ResidentialSale” listing_type = “HolidayLease” listing_type = “ProjectSale” |
property_type |
VARCHAR (255) property type according to the listing type of that country |
min_bedroom |
Integer(11) |
min_bathroom |
Integer(11) |
min_carspace |
Integer(11) |
min_price |
Integer(11) |
max_price |
Integer(11) |
suburbs |
Muliple sub urb with “,” coma as separator ex: suburb1,sub urb2,suburb3 |
heard_about_us |
Integer(11) The “type” of the contact fills the form heard_about_us = 1 → Newspaper heard_about_us = 2 → Referral heard_about_us = 3 → Web heard_about_us = 4 → Past Client heard_about_us = 5 → Sign board heard_about_us = 6 → Other |
category_id |
Integer(11) The “type” of the contact fills the form category_id = 1 → Vendor – Past category_id = 2 → Vendor – Existing category_id = 3 → Vendor – Potential category_id = 4 → Landlord – Past category_id = 5 → Landlord – Existing category_id = 6 → Landlord – Potential category_id = 7 → Buyer – Past category_id = 8 → Buyer – Potential category_id = 9 → Tenant – Past category_id = 10 → Tenant – Existing category_id = 11 → Tenant – Potential category_id = 12 → Other |
NB:
first_nameandlast_namemust be defined.heard_from_idmust be defined according to the available idsnote_typemust be defined according to the available ids- if
alertare checked and alert type are not set that will use “Lastest News” as the alert type - if
notetype set as “property enquiry”,property_idandheard_from_idhave to be prepared.
And it will createnoteandalertfor that property automatically, so no need to fillnote, address, alert_type, listing_type, property_type, min_bedroom, min_bathroom, min_carspace, min_price, max_price and suburbs
Accessing API
All data remitted is protected by an Access and Private Key so you will need the api keys for each office. Thsi can be found in the API page for that office in your Developer’s System.
example php code:
- To access the API include this code in the page which receives data through the contact form and complete these parameters:
- Access Key:
5a948d2c983111cffdc80d247d3ba4fa0b2b0839 - Private Key:
7abc1bd6d3bfe7016d79f6ba6f3de81d798ef923 //sending Post data to specific API<?php// get data from form contactif(isset($_POST['first_name'])) $ first_name = $_POST['first_name'];if(isset($_POST['last_name'])) $ last_name = $_POST['last_name'];if(isset($_POST['email'])) $email= $_POST['email']);$accesskey= "5a948d2c983111cffdc80d247d3ba4fa0b2b0839"$privatekey= "7abc1bd6d3bfe7016d79f6ba6f3de81d798ef923"// send to API$ch = curl_init();curl_setopt($ch, CURLOPT_URL, 'http://agentpoint.agentaccount.com/agents/1/offices/1/contact_listeners');curl_setopt ($ch, CURLOPT_POST, 1);curl_setopt ($ch, CURLOPT_POSTFIELDS, "first_name=$first_name&last_name=$last_name&email=$email");curl_setopt($ch, CURLOPT_USERPWD, $accesskey . ':'.$privatekey);curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_exec($ch);curl_close($ch);?>
Hope you are well.
I was surfing through your website. When we search for any keyword pertaining to your domain, your website does not come on the first page of Google. So how would people come to know about your website? If you want your website to appear on first page of Google then please let me know. We can provide you guaranteed Top 10 Google rankings.
I look forward to your Mail.
Do LV Have Outlet Stores