Sample Perl and Python code for connecting to MyDesktop's Property Hits API.
The purpose of this endpoint is to provide external websites with access to update the property hits for a property.
- Submit a
POSTrequest withJSONpayload as specified below Hitssubmitted are the total number of hits for that day- A repeat
Hitssubmission for a date will override the hits on that date with the newHitsfigure - Your request should be submitted in batches of 500. More than 500 properties in one request will result in an error.
Apikey- Unique to each developer, MyDesktop will provide this to you on setupTest- If set to 1, hits will not be committed to the databaseProperties- An array of property objects (in batches of 500 or less)
Property Object
UniqueID- Property ID (MyDesktop primary key or REAXMLID)AgentID- Numeric ID for the officeDate- The date the hits are for, inYYYY-MM-DDformatHits- Cumulative number of hits for this property on this date
Email support@mydesktop.com.au for assistance