Posts Tagged ‘real estate xml’

XMLs now being Cached

We are now caching xml’s on the server in order to limit the number of database queries made through the API. This won’t affect the transfer of data from Zoo Property to your client’s websites as our solution still results in the most optimal transfer of data.

How it works:
There is xml for each of the property status so for Available & Under Offer, Sold & Leased, Withdrawn which looks something like this http://api.agentaccount.com/api/properties?office_id=1&page=1. This xml will show ALL listings with that status if you execute it.  The xml created will be cached on the server for 4 weeks.

This means when you execute the url again the xml already created will be displayed in your browser.

There is another xml which will show any listings updated in the past 30 minutes. The link to this xml will be something like this http://api.agentaccount.com/api/properties?office_id=1&updated.

This xml will be cached on the server for 15 minutes meaning if you execute it after the 15 minutes it will scan the database and display the fresh results.

So what does all of this mean? You need to setup a cron job on your server to execute a scan of the updated xml every 15 minutes. Once this is working you then can perform a scan of the other xmls (containing all listings in the database) which will bring your local database to date. Moving forward any updates in Zoo Property will be sucked in to your local database every 15 minutes.


Zoo Property Developer & Client API

Previously there was only an API for each office in Zoo Property. We have now enhanced this for web developers by adjusting the API so now xml’s are available for the CLIENT (all offices for that client) and for the DEVELOPER (so all offices and clients belonging to the developer).

The CLIENT XML will come in handy if the developer needs to build a website for multiple offices and wants an easy way to populate the website through 1 xml.

With the developer xml you can display ALL listings belonging to all of your clients in the 1 xml. This will come in handy if the developer needs to populate all of their client’s listings on the one website.